[Linux-ham] how do you sed to replace a single quote with some other character ?

Basil Gunn basil at pacabunga.com
Fri Feb 14 01:29:49 EST 2014


On Thu, 13 Feb 2014 23:37:26 -0500
Tadd Torborg <tadd at mac.com> wrote:

> Does anybody know how to get sed to find and replace a ' with
> something, or something with a '  ??

sed "s/'/something/g" somefile.txt
sed "s/something/'/g" somefile.txt

/Basil n7nix


More information about the Linux-ham mailing list