Re: process null-delimited input

2006-09-07 Thread Paul Jarc
"Nathan Coulter" <[EMAIL PROTECTED]> wrote: > cat <&0 | xargs -0 -n2 bash -c ' > This is beside the point, but "<&0" is a no-op and be removed. Same for "cat |". paul ___ Bug-bash mailing list Bug-bas

process null-delimited input

2006-09-07 Thread Nathan Coulter
I'd like to use a bash script in a pipe to process null-delimited output: | myscript > results Since the "read" command seems to currently be unable to use ascii null as a delimiter, I'm using xargs to parse the file and feed to a subshell: *** contents of myscript*** cat <&0 | xargs -0 -n2 b