BSD 4_4 development
[unix-history] / usr / share / man / cat1 / head.0
HEAD(1) BSD Reference Manual HEAD(1)
N\bNA\bAM\bME\bE
h\bhe\bea\bad\bd - display first lines of a file
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
h\bhe\bea\bad\bd [-\b-n\bn _\bc_\bo_\bu_\bn_\bt] [_\bf_\bi_\bl_\be _\b._\b._\b.]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
This filter displays the first _\bc_\bo_\bu_\bn_\bt lines of each of the specified
files, or of the standard input if no files are specified. If _\bc_\bo_\bu_\bn_\bt is
omitted it defaults to 10.
If more than a single file is specified, each file is preceded by a head-
er consisting of the string ``==> XXX <=='' where ``XXX'' is the name of
the file.
The h\bhe\bea\bad\bd utility exits 0 on success, and >0 if an error occurs.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
tail(1)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The h\bhe\bea\bad\bd command appeared in 3.0BSD.
3rd Berkeley Distribution June 6, 1993 1