Re: No escape from the dollar sign in SED
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <CAEE75_246MqT57T+XdVFwPNtHP=cx27PWEUOqjBQYN2aaUm-FA@mail.gmail.com> |
You seem to be using just about every conceivable variation on
quoting, and I don't see the point. I get confused trying to read your
code too. Simplify.
~ $ usb=/mnt/stick
~ $ sed "s,\$path,$usb,g" <<\EOD
> echo and here it is:
> ftpdir=$path
> echo more stuff
> EOD
echo and here it is:
ftpdir=/mnt/stick
more stuff
~ $