Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ head(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cat(1)

more(1)

pg(1)

tail(1)

head(1)                                                             head(1)

NAME
     head - display opening lines of files

SYNOPSIS
     head [-n number] [--] [file ...]

DESCRIPTION
     head copies the opening lines of a file to standard output. If no file
     is given, head reads from standard input.

OPTIONS
     -n number
          Number of lines to be output.

          -n not specified: The first 10 lines are output.

          -n number is equivalent to the old -number option, which will
          continue to be supported.

     --   If file begins with a dash (-), the end of the command-line
          options must be marked with --.

     file Name of the input file. If more than one file is named, the files
          will be processed in the order in which they are listed, and the
          output of each file begins with: ==>file<==.

LOCALE
     The LCMESSAGES environment variable governs the language in which
     message texts are displayed. If LCMESSAGES is undefined or is defined
     as the null string, it defaults to the value of LANG. If LANG is like-
     wise undefined or null, the system acts as if it were not internation-
     alized.

     The LCALL environment variable governs the entire locale. LCALL
     takes precedence over all the other environment variables which affect
     internationalization.

EXAMPLES
     To see the first 5 lines of three files, you enter the head command as
     shown below:

     $ head -n 5 file1 file2 file3

     The first five lines of each of the three files are written to stan-
     dard output as follows:

     ==>file1<==
     Lines 1-5 of file 1

     ==>file2<==
     Lines 1-5 of file 2




Page 1                       Reliant UNIX 5.44                Printed 11/98

head(1)                                                             head(1)

     ==>file3<==
     Lines 1-5 of file 3

SEE ALSO
     cat(1), more(1), pg(1), tail(1).

















































Page 2                       Reliant UNIX 5.44                Printed 11/98

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