[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sed
- Subject: [ale] sed
- From: james.sumners at gmail.com (James Sumners)
- Date: Fri, 28 Mar 2008 18:47:38 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
I'm not regex wizard, but I'm pretty sure the $ is being interpreted
as a regex command and not a reference to the variable 'email'. You
would have to at least escape it with a backslash.
2008/3/28 Terry Bailey <terry at bitlinx.com>:
>
> Hi,
>
> I have a Perl problem.
>
> $email = xyx at abc.net
>
> -e 's/laplace/$email/'
>
> sed will not completely replace "laplace" with the value in $email because
> everything is lost starting with the "@" and ending with the "c".
>
>
> Any help would be appreciated.
>
> Thanks.
>
> Terry Bailey
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
>
--
James Sumners
http://james.roomfullofmirrors.com/
"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."
Missionaria Protectiva, Text QIV (decto)
CH:D 59
- References:
- [ale] sed
- From: terry at bitlinx.com (Terry Bailey)