Re: Including ' in a sed command
If you can guarantee that another spare character will not appear in
your input, doing something like this (with @ as the spare) can help to
avoid the layers-of-escapes problem.
… | tr \" @ | sed … | tr @ \"
It's a simple hack, but sometimes they're just the thing. If you are
going to strip out all the tabs anyway, for example, you could do that
first, and have tab as a spare.
--
Please do not CC me for listmail.
Jonathan Dowland
jmtd@debian.org
https://jmtd.net
Reply to: