help with sed and tick marks
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Dec 29 22:31:10 UTC 2008
On Mon, 29 Dec 2008 22:31:17 +0100, "Len Conrad" <lconrad at Go2France.com> wrote:
> A string in a file contains
>
> ('name at domain.net'',
>
> ... where and we want to remove the extra tick mark, to have:
>
> ('name at domain.net',
>
> iow, replace
>
> net''
>
> with
>
> net'
>
> We've tried many combinations with sed, but failed.
>
> Suggestions?
Use proper quoting in your shell, i.e.:
sed -e 's/'\'\''/'\''/g' < inputfile > outputfile
or different quote to delimit the sed expression:
sed -e "s/''/'/g"
More information about the freebsd-questions
mailing list