head

version: 0.0.9
head [FLAG]... [FILE]...

Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long flags are mandatory for short flags too.

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes=<[-]NUM>, -c <[-]NUM>

print the first NUM bytes of each file; with the leading '-', print all but the last NUM bytes of each file

--lines=<[-]NUM>, -n <[-]NUM>

print the first NUM lines instead of the first 10; with the leading '-', print all but the last NUM lines of each file

--quiet, --silent, -q

never print headers giving file names

--verbose, -v

always print headers giving file names

--zero-terminated, -z

line delimiter is NUL, not newline