head - Output the 1st part of files.
Summary:
Show the first 10 lines of each FILE. With more than one FILE, precede
each with a header giving the file name. With no FILE, or when FILE
is -, then read the input from stdin.
Examples:
$ head -- Read 10 lines from stdin and dump to stdout.
$ head foss.txt -- Show 1st 10 lines of the file.
$ head f1 f2 -- Show 1st 10 lines of file f1 & f2 with header.
$ head -q f1 f2 -- Same as above, but with-out header.
$ head -n 15 myfile -- Show 1st 15 lines only.
$ head -c 15 myfile -- Show 1st 15 Bytes only.
$ head -c 15k myfile -- Show 1st 15KB only.
* Useless Use of Head (By Jan Schaumann):
(1) ls -1 | head -n 10 | sed -e 's/FIND/REPLACE/'
(2) http://www.10000takes.com/zidane.jpg
* MultiTail (Thanks Karanbir)
http://www.vanheusden.com/multitail/
Read: man head
HTH :)
--
Bharathi S