minix/man/man1/head.1

38 lines
647 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.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
2005-05-02 15:01:42 +02:00
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
2012-03-31 23:44:29 +02:00
.TP 5
.B \-n \fIn\fR
# How many lines to print
.TP 5
.B \-\fIn\fR
# How many lines to print (backwards-compatible)
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.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
2005-05-02 15:01:42 +02:00
.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).