Annotation of lucent/sys/man/1/split, revision 1.1.1.1

1.1       root        1: .TH SPLIT 1
                      2: .CT 1 files
                      3: .SH NAME
                      4: split \- split a file into pieces
                      5: .SH SYNOPSIS
                      6: .B split
                      7: [
                      8: .I option ...
                      9: ]
                     10: [
                     11: .I file
                     12: ]
                     13: .SH DESCRIPTION
                     14: .I Split
                     15: reads
                     16: .I file
                     17: (standard input by default)
                     18: and writes it in pieces of 1000
                     19: lines per output file.
                     20: The names of the
                     21: output files are
                     22: .BR xaa ,
                     23: .BR xab ,
                     24: and so on to
                     25: .BR xzz .
                     26: The options are
                     27: .TP
                     28: .BI - n
                     29: Split into
                     30: .IR n -line
                     31: pieces.
                     32: .TP
                     33: .BI -e " expression"
                     34: File divisions occur at each line
                     35: that matches a regular
                     36: .IR expression ;
                     37: see 
                     38: .IR regexp (6).
                     39: Multiple
                     40: .B -e
                     41: options may appear.
                     42: If a subexpression of
                     43: .I expression
                     44: is contained in parentheses
                     45: .BR ( ... ) ,
                     46: the output file name is the portion of the
                     47: line which matches the subexpression.
                     48: .TP
                     49: .BI -f " stem
                     50: Use
                     51: .I stem
                     52: instead of
                     53: .B x
                     54: in output file names.
                     55: .TP
                     56: .BI -s " suffix
                     57: Append
                     58: .I suffix
                     59: to names identified under
                     60: .BR -e .
                     61: .TP
                     62: .B -x
                     63: Exclude the matched input line from the output file.
                     64: .TP
                     65: .B -i
                     66: Ignore case in option
                     67: .BR -e ;
                     68: force output file names (excluding the suffix)
                     69: to lower case.
                     70: .SH SOURCE
                     71: .B /sys/src/cmd/split.c
                     72: .SH SEE ALSO
                     73: .IR sed (1), 
                     74: .IR awk (1)
                     75: .IR grep (1),
                     76: .IR regexp (6)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.