aboutsummaryrefslogtreecommitdiffstats
s6-portable-utils: the s6-head program

s6-portable-utils
Software
skarnet.org

The s6-head program

s6-head prints the first lines of its input files.

Interface

     s6-head [ -S ] [ -1..9 | -n lines | -c chars ] file...

s6-head acts as the generic head utility.

Extra options

  • -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.

Posixness

s6-head is suitable as a Single Unix head program.