[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using NUL in scripts
From: |
Mike Frysinger |
Subject: |
Re: using NUL in scripts |
Date: |
Thu, 27 Sep 2007 02:39:51 -0400 |
User-agent: |
KMail/1.9.7 |
On Wednesday 26 September 2007, Mike Frysinger wrote:
> 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
this could be cheated by doing:
echo ${@/%.moo/.foo$'\001'} | tr '\001' '\000' | xargs -0 rm -f
but i'll ask the POSIX guys as Eric suggested
-mike
signature.asc
Description: This is a digitally signed message part.