[Linux-ham] how do you sed to replace a single quote with some other character ?
Tadd Torborg
tadd at mac.com
Fri Feb 14 01:33:37 EST 2014
Ah. the old double-quote trick. Thanks.
Tadd
Tadd Torborg
tadd at mac.com
On Feb 14, 2014, at 1:29 AM, Basil Gunn <basil at pacabunga.com> wrote:
> 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