[Top][All Lists]

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

using NUL in scripts

From: Mike Frysinger
Subject: using NUL in scripts
Date: Wed, 26 Sep 2007 21:04:19 -0400
User-agent: KMail/1.9.7

is it even possible to utilize NUL in scripts ?  or does bash just strip it 
out ?  for example, trying to work with binary data:
echo "${foo}" > new-file
the "new-file" will be exactly "binary-file" if all NUL bytes are stripped out

or perhaps i want to take an arg list, append a string, and run a command on 
it ... but i cant pass it straight as it may be too large, so i need to xargs 
it ... so i'd do something like:
echo ${@/%.moo/.foo$'\000'} | xargs -0 rm -f
but this doesnt work since the $'\000' gets stripped

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]