On Tue, Oct 05, 2004 at 06:37:30PM -0500, Daniel Brown wrote:
> I'm no perl expert, but this seems to work:
> 
>   s/foo(bar)/fu\1\00001/
> 
> '\000' should be the null character (a.k.a. '\0'), and I guess it just
> strips certain non-printables (or maybe just the null character).
> 
> Or maybe this will have some freaky effect if you use it. *shrug*

$ echo foobar | perl -pe 's/foo(bar)/fu\1\00001/' | od -c
0000000   f   u   b   a   r  \0   0   1  \n
0000011

-- 
Andrew Gaul
http://gaul.org/

Attachment: pgp12C8Evw5jz.pgp
Description: PGP signature

_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux

Reply via email to