icon Top 9 categories map      RocketAware >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Solaris Others

[IEEE Std1003.2-1992 (``POSIX.2'')]

HEAD(1)                    OpenBSD Reference Manual                    HEAD(1)

     head - display first few lines of files

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

     The head utility copies the first count lines of each specified file to
     the standard output.  If no files are named, head copies lines from the
     standard input.  If count is omitted, it defaults to 10.

     The options are as follows:

     -count | -n count
             Copy the first count lines of each input file to the standard
             output.  count must be a positive decimal integer.

     If more than one file is specified, head precedes the output of each file
     with the following, in order to distinguish the head of each file:

           ==> file <==

     To display the first 500 lines of the file foo:

           $ head -500 foo

     head can be used in conjunction with tail(1) in the following way to, for
     example, display only line 500 from the file foo:

           $ head -500 foo | tail -1

     The historic command line syntax of head is supported by this implementa-

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

     The head utility conforms to IEEE Std1003.2-1992 (``POSIX.2'').

     The head utility appeared in 3.0BSD.

OpenBSD 2.6                      July 14, 1993                               1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]
FreeBSD Sources for head(1)
OpenBSD sources for head(1)

[Overview Topics]

Up to: Text File Output - Methods of printing and displaying text files.
Up to: File Viewers - Viewing the contents of files in various forms.

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD RedHat Solaris Others

[IEEE Std1003.2-1992 (``POSIX.2'')]

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > head.1/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments