Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ head(1) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

tail(1)

head(1)

NAME

head − give first few lines

SYNOPSIS

head [-c| -l] [-n count] [file ...]

Obsolescent:
head [-count] [file ...]

DESCRIPTION

head prints on standard output the first count lines of each of the specified files, or of the standard input.  If count is omitted it defaults to 10. 

If multiple files are specified, head outputs before each file a line of this form:

==> file <==

Options

-c The quantity of output is measured in bytes. 

-count The number of units of output.  This option is provided for backward compatibility (see -n below) and is mutually exclusive of all other options. 

-l The quantity of output is measured in lines; this is the default. 

-n count The number of lines (default) or bytes output.  count is an unsigned decimal integer.  If -n (or -count) is not given, the default quantity is 10. This option provides the same functionality as the -count option, but in a more standard way.  Use of the -n option is recommended where portability between systems is important. 

SEE ALSO

tail(1). 

STANDARDS CONFORMANCE

head: POSIX.2

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026