MPE/iX Shell and Utilities Reference Manual, Vol 1

head(1) MPE/iX Shell and Utilities head(1)
NAME
head — display first part of file
SYNOPSIS
head [–bcklmn num][file ...]
head [num][file ...]
DESCRIPTION
By default, head displays the first 10 lines of each file given on the command line. If you do
not specify file, head reads the standard input.
Options
head accepts the following options:
–b num displays the first num blocks (a block is 512 bytes) of each file.
–c num displays the first num characters of each file.
–k num displays the first num kilobytes (1024 bytes) of each file.
–l num displays the first num lines of each file.
–m num displays the first num megabytes of each file.
–n num displays the first num lines of each file.
num displays the first num lines of each file.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to any of the following:
— cannot open an input file
— read error on the standard input
— write error on the standard output
2 Failure due to any of the following:
— unknown command line option
— missing or invalid num in a –n option
Commands and Utilities 1-263