The s6-head program
s6-head prints the first lines of its input files.
s6-head [ -S ] [ -1..9 | -n lines | -c chars ] file...
s6-head acts as the generic
- -S : safe mode. s6-head stops reading its input files right after
getting all the lines it needs. The rest of the stream can then be handled by other
utilities without any data loss.
- -1..9 : equivalent to -n 1 .. -n 9.
- -c chars : cuts after chars characters instead
of lines lines.
s6-head is suitable as a Single Unix