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

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

Reply via email to