henesyinit from p9fce6d0435 years agoHistory
76 lines · 1.1 KB · Text
RawDownload
.TH SPLIT 1.CT 1 files.SH NAMEsplit \- split a file into pieces.SH SYNOPSIS.B split[.I option ...][.I file].SH DESCRIPTION.I Splitreads.I file(standard input by default)and writes it in pieces of 1000lines per output file.The names of theoutput files are.BR xaa ,.BR xab ,and so on to.BR xzz .The options are.TP.BI - nSplit into.IR n -linepieces..TP.BI -e " expression"File divisions occur at each linethat matches a regular.IR expression ;see .IR regexp (6).Multiple.B -eoptions may appear.If a subexpression of.I expressionis contained in parentheses.BR ( ... ) ,the output file name is the portion of theline which matches the subexpression..TP.BI -f " stemUse.I steminstead of.B xin output file names..TP.BI -s " suffixAppend.I suffixto names identified under.BR -e ..TP.B -xExclude the matched input line from the output file..TP.B -iIgnore case in option.BR -e ;force output file names (excluding the suffix)to lower case..SH SOURCE.B /sys/src/cmd/split.c.SH SEE ALSO.IR sed (1), .IR awk (1).IR grep (1),.IR regexp (6)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t