DOKK / manpages / debian 12 / 9base / split.1plan9.en
SPLIT(1plan9) SPLIT(1plan9)

split - split a file into pieces

split [ option ... ] [ file ]

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

Split into n-line pieces.
Synonym for -n n, a nod to Unix's syntax.
File divisions occur at each line that matches a regular expression; see regexp(7). Multiple -e options 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.
Use stem instead of x in output file names.
Append suffix to names identified under -e.
Exclude the matched input line from the output file.
Ignore case in option -e; force output file names (excluding the suffix) to lower case.

/src/cmd/split.c

sed(1), awk(1), grep(1), regexp(7)