[SLUG] Quick question
Al Girling
al at gcguk.demon.co.uk
Tue Jul 22 22:26:46 BST 2008
On Tue, Jul 22, 2008 at 05:58:11PM BST, John Allsopp wrote:
> >This doesn't work either:
> >
> >sed -i s/KoolTrax/KoolTrax\d038/g *.php*
> >
> >It should produce an ampersand (ASCII 38) but actually prints d038
> >instead. Genius.
> >
> >I'm thinking versions of regex but I don't know enough about those.
> >
> >J
>
> It needed ' ' around the main bit. I thought that was only if I had a
> space in there, but apparently not. It works now. I'm tracking down why
> and I'll let you know if I find out.
Glad you've got it sorted. I can't help you with why sed requires the
substitute command to have '' around it, but it seems to be compulsory
for it to work.
Welcome to the wonderful world of regex. May the 'Oh yes, brilliant'
moments outweigh the 'F*****g b*****d thing, why don't you work' ones!
:)
Toodle pip,
Al
--
Al Girling
Linux User: #290080 <http://counter.li.org>
Home-page: <http://al.sdf-eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/scarborough/attachments/20080722/dfe1a12c/attachment.bin
More information about the Scarborough
mailing list