This command does not work in GNU Coreutils split, split of Cern Linux 5 (Redhat) and BSD (Apple Yosemite 10.10.3):
split -p'\0' input.txt
where input.txt is masi\0hello\0world
.
Some comments about the versions follow:
- I do
split -p'\0' input.txt
in BSD Split but I get nothing as output in OSX Yosemite 10.10.3, GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14). - I do
echo 'masi\0hello' | split -p'\\0'
in split 5.97 GNU 2012 in CERN Linux 5 (Redhat). Outputsplit: unrecognized option --p\\0'
. - no option -p in GNU Coreutils split
I have forgot where I successfully used the option -p
with split
.
Which version of split
does support the flag -p
?
\0
is literal string orNULL
byte?-p
see pattern as extended regex, you can try-p'\\0'
.split
from GNU coreutils doesn't have-p
option.