Hans du Plooy wrote:
Jose Luis Rivas Contreras wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans du Plooy escribió:Hi guys, I'm trying to do a search/replace on some text. Looks like this: 1.2.3.4(1.2.3.4) 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?Thanks Hans
I think you have too many \, try sed 's/\(/ /' That is the way it would be done in perl, vim, etc. but sed may be different! ;-) Good Luck! Dennis