Re: sed problem

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hans Müller wrote:
> 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??

Try this:

$ echo "/Linux/update" | sed 's,/,\\/,g'
\/Linux\/update

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Going to hell when I die would just be redundant.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkRGcRUmGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1rcgwCeMpRboEs38nP3xnXcl8sz+4LTQuAAoKYY65M6
Kct2XK5ft/pCdvUTkcxE
=97xP
-----END 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