home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: groups Chapter 2
UNIX Commands
Next: Reference: help
 

head



head

 [

-



n

] [

files

]

Print the first few lines of one or more files . Use -n to print the first n lines (default is 10).

Examples

Display the first 20 lines of phone_list :



head -20 phone_list

Display the first ten phone numbers having a 202 area code:



grep '(202)' phone_list | head


Previous: Reference: groups UNIX in a Nutshell: System V Edition Next: Reference: help
Reference: groups Book Index Reference: help

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru