Re: using regex substitution on BASH variables

2004-01-26 Thread Matt Price
On Mon, Jan 26, 2004 at 03:54:52PM -0500, David Z Maze wrote: > Matt Price <[EMAIL PROTECTED]> writes: > > > Now, if this information were stored in a file, it would be simple to > > manipulate with regex's: > > > > sed 's/@/ -at- /' addressfile > > > > But I don't see an obvious way to get sed or

Re: using regex substitution on BASH variables

2004-01-26 Thread David Z Maze
Matt Price <[EMAIL PROTECTED]> writes: > Now, if this information were stored in a file, it would be simple to > manipulate with regex's: > > sed 's/@/ -at- /' addressfile > > But I don't see an obvious way to get sed or awwk to take variable values > as input. I can do the following: > > FROM=`f

using regex substitution on BASH variables

2004-01-26 Thread Matt Price
On Mon, Jan 26, 2004 at 01:05:08PM +0100, Philipp Weis wrote: > On 26 Jan 2004, Matt Price <[EMAIL PROTECTED]> wrote: > > So I asusme the script is running, but it's not receiving the data it > > needs, or at least not understanding it. > > > > Procmail sends the message via STDIN, so you would