[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: escape characters in sed



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



Reply to: