[glug-t] One Day One GNU/Linux Command (HEAD)
- From: Bharathi Subramanian <sbharathi@xxxxxxxxxxxxx>
- To: VEC-FOSS <vecfoss@xxxxxxxxxxxxxxxx>, GNU/Linux Users Group - Trichy <glug_t@xxxxxxxxxxxxx>, GNU/Linux User Group of TCE <glugot@xxxxxxxxxxxxx>
- Date: Fri, 16 May 2008 09:59:25 +0530 (IST)
One Day One GNU/Linux Command
=============================
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
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
Other related posts:
- » [glug-t] One Day One GNU/Linux Command (HEAD)