30 lines
		
	
	
		
			633 B
		
	
	
	
		
			Groff
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			633 B
		
	
	
	
		
			Groff
		
	
	
	
	
	
| .TH HEAD 1
 | |
| .SH NAME
 | |
| head \- print the first few lines of a file
 | |
| .SH SYNOPSIS
 | |
| \fBhead\fR [\fB\-\fIn\fR | \fB\-n\fR \fIn\fR]\fR [\fIfile\fR] ...\fR
 | |
| .br
 | |
| .de FL
 | |
| .TP
 | |
| \\fB\\$1\\fR
 | |
| \\$2
 | |
| ..
 | |
| .de EX
 | |
| .TP 20
 | |
| \\fB\\$1\\fR
 | |
| # \\$2
 | |
| ..
 | |
| .SH OPTIONS
 | |
| .FL "\-n \fIn\fR" "How many lines to print"
 | |
| .FL "\-\fIn\fR" "How many lines to print (backwards-compatible)"
 | |
| .SH EXAMPLES
 | |
| .EX "head \-n 6" "Print first 6 lines of \fIstdin\fR"
 | |
| .EX "head \-1 file1 file2" "Print first line of two files"
 | |
| .SH DESCRIPTION
 | |
| .PP
 | |
| The first few lines of one or more files are printed.
 | |
| The default count is 10 lines.
 | |
| The default file is \fIstdin\fR.
 | |
| .SH "SEE ALSO"
 | |
| .BR tail (1).
 | 
