Pieter van Oostrum <piete...@vanoostrum.org> writes: > It isn't that difficult with sed, only you have to chose a different > character than / in the substitute command, one that is not present in > both texts, e.g instead of s/a/b/ use s=a=b=. > > And then the special characters " ' () [ and $ must be escaped for the > shell, and [ and $ also for the regexp. > Then it comes down to > sed -e s=\"\(\\[^/]+\)\\$\"=\'\(\[^/]+\)\$\'= file
To be honest, I myself would use Emacs, with rgrep and wgrep to do this. -- Pieter van Oostrum WWW: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list