On Mon, 29 Dec 2008 22:31:17 +0100, "Len Conrad" <[email protected]> wrote:
> A string in a file contains
>
> ('[email protected]'',
>
> ... where and we want to remove the extra tick mark, to have:
>
> ('[email protected]',
>
> 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"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"