Re: escape characters in sed
Jose Luis Rivas Contreras wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hans du Plooy escribió:
I'm trying to do a search/replace on some text. Looks like this:
To my mind, this should replace the '(' with a space
sed 's/\\)/ /
But it does nothing. Why? How do I do this?
Well, I think you're replacing `)' and not `('
Typo, sorry. Should be:
sed 's/\\(/ /'
Still doesn't work though :-) I guess the question should be, how to
excape a ( character?