Re: sed problem

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

 



On 4/20/06, Paul Howarth <paul@xxxxxxxxxxxx> 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."


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

  Powered by Linux