Blob
1 .TH SPLIT 12 .CT 1 files3 .SH NAME4 split \- split a file into pieces5 .SH SYNOPSIS6 .B split7 [8 .I option ...9 ]10 [11 .I file12 ]13 .SH DESCRIPTION14 .I Split15 reads16 .I file17 (standard input by default)18 and writes it in pieces of 100019 lines per output file.20 The names of the21 output files are22 .BR xaa ,23 .BR xab ,24 and so on to25 .BR xzz .26 The options are27 .TP28 .BI -n " n"29 Split into30 .IR n -line31 pieces.32 .TP33 .BI -l " n"34 Synonym for35 .B -n36 .IR n ,37 a nod to Unix's syntax.38 .TP39 .BI -e " expression"40 File divisions occur at each line41 that matches a regular42 .IR expression ;43 see44 .IR regexp (7).45 Multiple46 .B -e47 options may appear.48 If a subexpression of49 .I expression50 is contained in parentheses51 .BR ( ... ) ,52 the output file name is the portion of the53 line which matches the subexpression.54 .TP55 .BI -f " stem56 Use57 .I stem58 instead of59 .B x60 in output file names.61 .TP62 .BI -s " suffix63 Append64 .I suffix65 to names identified under66 .BR -e .67 .TP68 .B -x69 Exclude the matched input line from the output file.70 .TP71 .B -i72 Ignore case in option73 .BR -e ;74 force output file names (excluding the suffix)75 to lower case.76 .SH SOURCE77 .B \*9/src/cmd/split.c78 .SH SEE ALSO79 .IR sed (1),80 .IR awk (1),81 .IR grep (1),82 .IR regexp (7)