[ale] sed

Brian Pitts brian at polibyte.com
Fri Mar 28 19:08:39 EDT 2008


Terry Bailey wrote:
> Hi,
> 
> I have a Perl problem.
> 
> $email = xyx at abc.net
> 
> -e 's/laplace/$email/'

This works for me.

$ email="xyx at abc.net"
$ echo laplace > foo
$ perl -pe "s/laplace/$email/" foo
xyx.net

-Brian


More information about the Ale mailing list