Re: sed problem

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

 



Hello Hans,


On Wed, 19 Apr 2006 18:57:54 +0200 Hans Müller <ndof@xxxxxx> 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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux