On Mon, 29 Dec 2008 22:31:17 +0100, "Len Conrad" <lcon...@go2france.com> wrote:
> A string in a file contains
>
> ('n...@domain.net'',
>
> ... where and we want to remove the extra tick mark, to have:
>
> ('n...@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"

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to