sed problem
Christofer C. Bell
christofer.c.bell at gmail.com
Thu Apr 20 15:12:19 UTC 2006
On 4/20/06, Paul Howarth <paul at city-fan.org> wrote:
> Christofer C. Bell wrote:
> >
> > You don't need to escape anything, just use a different limiter:
> >
> > $ echo "/Linux/update" | sed 's:/:V:g'
>
> The replacement text wasn't "V", it was "\/", which *does* need escaping.
Ah, ok. Well, in that case it's still easier to just use a different
delimiter to avoid confusion: ;-)
$ echo "/Linux/update" | sed 's:/:\\/:g'
--
Chris
"I trust the Democrats to take away my money, which I can afford. I
trust the Republicans to take away my freedom, which I cannot."
More information about the fedora-list
mailing list