Head (Unix)
|
head is a program on Unix and Unix-like systems. It shows the first part of a list of files or piped data on standard input.
By default, head will print the first 10 lines of its input to standard output. The number of lines printed may be changed with a command line option. The following example shows the first 20 lines of filename:
- head -20 filename
This displays the first 5 lines of all files starting with foo:
- head -5 foo*
External links
- GNU Project documentation for head (http://www.gnu.org/software/coreutils/manual/html_mono/coreutils.html#SEC18)
- FreeBSD documentation for head (http://www.freebsd.org/cgi/man.cgi?query=head&apropos=0&sektion=0&manpath=FreeBSD+5.3-RELEASE+and+Ports&format=html)