sed problem
wwp
subscript at free.fr
Thu Apr 20 16:38:41 UTC 2006
Hello Christofer C.,
On Thu, 20 Apr 2006 10:12:19 -0500 "Christofer C. Bell" <christofer.c.bell at gmail.com> wrote:
> 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'
Eheh yes, that's why I provided both examples (and I even remember of a
complex sed expression in which it has been difficult to find an available
delimiter, but that's marginal).
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://listman.redhat.com/archives/fedora-list/attachments/20060420/dd23696c/attachment-0001.sig>
More information about the fedora-list
mailing list