Skip to content

Zero terminated

Terminal window
splitby -z [selection...]

Reads and writes NUL-delimited records. This is handy for find -print0 or xargs -0 style pipelines.

Terminal window
printf "first,second\0third,fourth\0" | splitby -z -d "," 1
# first
# third