head

Display the first lines of a file

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

      head [-c bytes] [file ...]

This filter displays the first count lines or bytes bytes of each of the specified files, or of the standard input if no files are specified.

If count is omitted it defaults to 10.

If more than a single file is specified, each file is preceded by a header consisting of the string `==> XXX <==' where `XXX' is the name of the file.

The head utility exits 0 on success, and >0 if an error occurs.

"If you can keep your head when all about you are losing theirs and blaming it on you..." - Rudyard Kipling

Related:

head man page - Apple.com
fmt - Reformat paragraph text
join - Join lines on a common field
split - Split a file into fixed-size pieces
tail - Output the last part of files


© Copyright SS64.com 1999-2013
Some rights reserved