plan9-split1
Split a file into pieces
Usage
split [option ...]
[file]
Overview
Split reads file (standard input by default) and writes it in pieces of 1000 lines per output file. The names of the output files are xaa, xab, and so on to xzz. The options are
-nn-
Split into n-line pieces.
-ln-
Synonym for
-nn, a nod to Unix's syntax.
-eexpression-
File divisions occur at each line that matches a regular expression; see regexp(7). Multiple
-eoptions may appear. If a subexpression of expression is contained in parentheses (...), the output file name is the portion of the line which matches the subexpression.
-fstem-
Use stem instead of
xin output file names.
-ssuffix-
Append suffix to names identified under
-e.
-
-x -
Exclude the matched input line from the output file.
-
-i -
Ignore case in option
-e; force output file names (excluding the suffix) to lower case.
Source
/src/cmd/split.c
Releases
Unchanged in 2 releases since Debian 6.0 (Squeeze).