[ale] sed

Jamey Owens vindir at comcast.net
Fri Mar 28 20:42:50 EDT 2008


Hey Brian, doesn't look like it worked for you.  Output was xyx.net

Escaping the @ symbol should work fine.

[tesla]$ emailx='xyx\@abc.com'
[tesla]$ echo "laplace" > foo
[tesla]$ perl -pe "s/laplace/$emailx/" foo
xyx at abc.com


----- Original Message ----- 
From: "Brian Pitts" <brian at polibyte.com>
To: <ale at ale.org>
Sent: Friday, March 28, 2008 7:08 PM
Subject: Re: [ale] sed
> 
> This works for me.
> 
> $ email="xyx at abc.net"
> $ echo laplace > foo
> $ perl -pe "s/laplace/$email/" foo
> xyx.net
> 
> -Brian
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20080328/239a2223/attachment.html 


More information about the Ale mailing list