bug-bash
[Top][All Lists]
Advanced

[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:

address@hidden:~/tmp5$ printf 'hello\000there' | xargs -n1 -0 echo
hello
there

address@hidden:~/tmp5$ printf 'hello\000there' | { while read -0 ; do echo 
$REPLY; done; }

-- 
pooryorick




reply via email to

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