Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/tasks/display2.1.html
Дата изменения: Fri Jan 17 12:43:23 1997
Дата индексирования: Tue Oct 2 01:17:38 2012
Кодировка:

Поисковые слова: annular solar eclipse
Examples of using the head command

Examples of using the head command

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 <==

[Home] [Search] [Index]