Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ head(1) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

line(1)

tail(1)



HEAD(1)                 COMMAND REFERENCE                 HEAD(1)



NAME
     head - give first few lines

SYNOPSIS
     head [ -count ] [ -f ] [ file ...  ]

DESCRIPTION
     This filter gives the first count lines of each of the
     specified files, or of the standard input; if count is
     omitted it defaults to 10.

     If more than one file is specified, the header:

          ==> filename <==i

     is printed before each file is displayed.

OPTIONS
     -count
        count lines are displayed; count is a decimal integer.

     -f When reading from standard input, all input is read; this
        prevents receiving the broken pipe message from the
        shell.

EXAMPLES
     The following example displays the first 20 lines of each of
     the files examp.c, example.h, and /etc/passwd.

          head -20 examp.c example.h /etc/passwd

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [USAGE]        Incorrect command line syntax. Execution
                    terminated.

     [P_ERR]        A system error occurred. Execution
                    terminated.  See intro(2) for more
                    information on system errors.

CAVEATS
     Because head buffers its input, the command:

          (head -1; head -1) < /etc/passwd

     does not list the first two lines of /etc/passwd.  The first
     head command reads a 8192 byte buffer and prints the first
     line.  The second head command must therefore start at byte
     8193 of the file.





Printed 5/12/88                                                 1





HEAD(1)                 COMMAND REFERENCE                 HEAD(1)



SEE ALSO
     line(1) and tail(1).





















































Printed 5/12/88                                                 2





































































%%index%%
na:240,79;
sy:319,220;
de:539,442;
op:981,356;
ex:1337,304;
rv:1641,444;
ca:2085,531;
se:2928,175;
%%index%%000000000132

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