minix/man/man1/split.1

37 lines
743 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.TH SPLIT 1
.SH NAME
split \- split a large file into several smaller files
.SH SYNOPSIS
\fBsplit\fR [\fB\-\fIn\fR]\fR [\fIfile \fR[\fIprefix\fR]\fR]\fR
.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 \-\fIn\fP
# Number of lines per piece (default: 1000)
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B split \-200 file
# Split \fIfile\fP into pieces of 200 lines each
.TP 20
.B split file z
# Split \fIfile\fP into \fIzaa\fP, \fIzab\fP, etc.
2005-05-02 15:01:42 +02:00
.SH DESCRIPTION
.PP
.I Split
reads \fIfile\fP and writes it out in \fIn\fP-line pieces.
By default, the pieces are called \fIxaa\fP, \fIxab\fP, etc.
The optional second argument can be used to provide an alternative
prefix for the output file names.
.SH "SEE ALSO"
.BR cat (1).