.\"
.\" Copyright (c) 2003 Gunnar Ritter
.\"
.\" This software is provided 'as-is', without any express or implied
.\" warranty. In no event will the authors be held liable for any damages
.\" arising from the use of this software.
.\"
.\" Permission is granted to anyone to use this software for any purpose,
.\" including commercial applications, and to alter it and redistribute
.\" it freely, subject to the following restrictions:
.\"
.\" 1. The origin of this software must not be misrepresented; you must not
.\"    claim that you wrote the original software. If you use this software
.\"    in a product, an acknowledgment in the product documentation would be
.\"    appreciated but is not required.
.\"
.\" 2. Altered source versions must be plainly marked as such, and must not be
.\"    misrepresented as being the original software.
.\"
.\" 3. This notice may not be removed or altered from any source distribution.
.\"
.\" Sccsid @(#)head.1	1.5 (gritter) 12/6/04
.TH HEAD 1 "12/6/04" "Heirloom Toolchest" "User Commands"
.SH NAME
head \- display first few lines of files
.SH SYNOPSIS
\fBhead\fR [\fB\-\fInumber\fR|\fB\-n\fI number\fR] [\fIfile\fR\ ...]
.SH DESCRIPTION
The
.B head
command prints the first
.I number
of lines from each
.I file to standard output.
If no
.I number
is specified, 10 is the default.
Without a
.I file
operand, the standard input is used.
.PP
When more that one
.I file
operand is given,
the string
.RS
.sp
\fB==> \fIfile\fB <==\fR
.sp
.RE
is printed before the first lines of the
.IR file.
.PP
The facility to specify the
.I number
with the
.I \-n
option has been introduced by POSIX.2.
.SH "SEE ALSO"
cat(1),
pg(1),
sed(1)
