Skip to Content
gnux

-z, --zero-terminated

Line delimiter is NUL, not newline.

An option of headx.

Usage

headx -z [FILE]...
headx --zero-terminated [FILE]...

Details

ShortLongValueDefaultMeaning
-z--zero-terminatednoneline delimiter is NUL, not newline

Examples

Take the first two entries of a NUL-separated list

find . -name '*.txt' -print0 | headx -z -n 2 | xargs -0 wcx -l

Help in the terminal

gnux help headx --zero-terminated

On this page