Re: perl or sed s/// problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Dale Farnsworth
Date:  
To: plug-discuss
CC: 
Subject: Re: perl or sed s/// problem
> > Sed seems to have the same problem. Anyone have any ideas on how I
> > can get this to work? And yes, unfortunately, I need to use the
> > variables.
>
> Try something like
>
> $ sed -e "s|$line|$newline|" file


Yes, this is a common solution to this problem. I've often seen, and
have occasionally used, the control-A character used as a delimiter.
It works fine and control-A is unlikely to occur in text. The challenge
then becomes finding how to enter control-A into a script with your
favorite text editor.

-Dale
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss