| You are here: SillyDog701 > UNIX Guide >SillyDog701 > UNIX Guide > (index) |
To display the first 10 lines of a file:
head /usr/local/doc/vi.txt
This displays the first 10 lines of the file vi.txt which is in the directory /usr/local/doc/
To display the first 5 lines of several files:
head -5 *.xdh
This displays, one after the other, the first 5 lines of each file with the extension .xdh in the current directory.
The first line of each file is shown as:
==> filename <==
UNIX Guide home |
search |
index
| Page URL: http://sillydog.org/unix/ [SillyDog701] [Netscape] [MozInfo701] [MacCentre701] [UNIX Guide] [AntTunes701][Forums] [Search] [Change Log] [Feedback] [About Us] [Sitemap] This UNIX Guide maintained by SillyDog701, portion of this Guide is based on UNIXhelp. UNIXhelp is copyright University of Edinburgh. This page was last modified on 14 March, 2006 |
support MozInfo701 and SillyDog701 |