> > 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 -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss