forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.1
More file actions
37 lines (37 loc) · 647 Bytes
/
Copy pathhead.1
File metadata and controls
37 lines (37 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.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
.TP 5
.B \-n \fIn\fR
# How many lines to print
.TP 5
.B \-\fIn\fR
# How many lines to print (backwards-compatible)
.SH EXAMPLES
.TP 20
.B head \-n 6
# Print first 6 lines of \fIstdin\fR
.TP 20
.B 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).