Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

more(1)

tail(1)

cat(1)

HEAD(1)  —  USER COMMANDS

NAME

head − display first few lines of specified files

SYNOPSIS

head [ −count] [ file ... ]

DESCRIPTION

Head copies the first count lines of the specified file(s), or of the standard input if no filename is given, to the standard output.  The default value of count is 10 lines. 

When more than one file is specified, head places a marker at the start of each file which looks like:

==> filename <==

Thus, a common way to display a set of short files, identifying each one, is:

gaia%  head  -9999  file1  file2 . . .

EXAMPLE

gaia%  head  -4  /usr/man/man1/{cat,head,tail}.1
==> /usr/man/man1/cat.1 <==
.TH CAT 1 "2 June 1983"
.SH NAME
cat − concatenate and display
.SH SYNOPSIS
 ==> /usr/man/man1/head.1 <==
.TH HEAD 1 "24 August 1983"
.SH NAME
head − display first few lines of specified files
.SH SYNOPSIS
 ==> /usr/man/man1/tail.1 <==
.TH TAIL 1  "27 April 1983"
.SH NAME
tail − display the last part of a file
.SH SYNOPSIS

SEE ALSO

more(1), tail(1), cat(1)

Sun Release 1.1  —  Last change: 24 October 1983

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