sed problem

wwp subscript at free.fr
Wed Apr 19 22:26:42 UTC 2006


Hello Hans,


On Wed, 19 Apr 2006 18:57:54 +0200 Hans Müller <ndof at gmx.li> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I have this sting: "/Linux/update" and I must substitute it to
> "\/Linux\/update" I tryed echo "/Linux/update"|sed "s/\//\\\//g" but it
> fails. have someone any ideas??

You're not escaping enough.. Use: `echo "/Linux/update"|sed "s/\//\\\\\//g"`
or even `echo "/Linux/update"|sed "s_/_\\\\/_g"`.


Regards,

-- 
wwp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20060420/58056aef/attachment-0002.bin 


More information about the users mailing list