[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Simple sed question
- Subject: [ale] Simple sed question
- From: byron at cc.gatech.edu (Byron A Jeff)
- Date: Sun, 31 Oct 1999 08:54:17 -0500 (EST)
>
> 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