[ale] Simple sed question
Byron A Jeff
byron at cc.gatech.edu
Sun Oct 31 08:54:17 EST 1999
>
> I am stumped on what should be a very simple sed operation.
>
> I have some files that I would like to replace the "'" (apostrophe) with a
> blank space.
>
> I thought the following would work, but it bombs:
>
> sed -e 's/\'/ /' filename.txt
Just use double quotes on the outside. Then the single quote will be
protected from recognition from the shell. I just tried this:
sed -e "s/'/ /" ...
and it worked just fine.
Remember to put a g after the substitute if you have more than one '
on a line.
BAJ
More information about the Ale
mailing list