[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
read command and ascii null as delimiter
From: |
Nathan Coulter |
Subject: |
read command and ascii null as delimiter |
Date: |
Tue, 05 Sep 2006 13:18:02 -0700 |
Feature request: an option, maybe "-0" to use ascii null as the delimiter for
the "read" command. It would make the following two commands produce the same
output:
pooryorick@debian:~/tmp5$ printf 'hello\000there' | xargs -n1 -0 echo
hello
there
pooryorick@debian:~/tmp5$ printf 'hello\000there' | { while read -0 ; do echo
$REPLY; done; }
--
pooryorick
- read command and ascii null as delimiter,
Nathan Coulter <=