unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

HEAD(1)                     General Commands Manual                    HEAD(1)



NAME
       head - display first few lines of specified files

SYNOPSIS
       head [ -n ] [ filename...]

DESCRIPTION
       head  copies the first n lines of each filename to the standard output.
       If no filename is given, head copies lines  from  the  standard  input.
       The default value of n is 10 lines.

       When  more  than  one  file  is specified, the start of each file which
       looks like:

              ==>&gt;filename<&lt;==

       Thus, a common way to display a set of short  files,  identifying  each
       one, is:
              example% head -9999 filename1 filename2 ...

EXAMPLE
       The following example:
              example% head -4 /usr/share/man/man1/{cat,head,tail}.1*

       produces:
              ==>&gt; /usr/share/man/man1/cat.1v <&lt;==
              .TH CAT 1V "2 June 1983"
              .SH NAME
              cat - concatenate and display
              .SH SYNOPSIS

              ==>&gt; /usr/share/man/man1/head.1 <&lt;==
              .TH HEAD 1 "24 August 1983"
              .SH NAME
              head - display first few lines of specified files
              .SH SYNOPSIS

              ==>&gt; /usr/share/man/man1/tail.1 <&lt;==
              .TH TAIL 1  "27 April 1983"
              .SH NAME
              tail - display the last part of a file
              .SH SYNOPSIS

SEE ALSO
       cat(1V), more(1), tail(1)



                               9 September 1987                        HEAD(1)