|
|
1.1 ! root 1: .TH SPLIT 1 ! 2: .CT 1 files ! 3: .SH NAME ! 4: split, fsplit \- split a file into pieces ! 5: .SH SYNOPSIS ! 6: .B split ! 7: [ ! 8: .I option ... ! 9: ] ! 10: [ ! 11: .I file ! 12: ] ! 13: .PP ! 14: .B fsplit ! 15: [ ! 16: .I option ... ! 17: ] ! 18: [ ! 19: .I file ... ! 20: ] ! 21: .SH DESCRIPTION ! 22: .I Split ! 23: reads ! 24: .I file ! 25: (standard input by default) ! 26: and writes it in pieces of 1000 ! 27: lines per output file. ! 28: The names of the ! 29: output files are ! 30: .BR xaa , ! 31: .BR xab , ! 32: and so on to ! 33: .BR xzz . ! 34: The options are ! 35: .TP ! 36: .BI - n ! 37: Split into ! 38: .IR n -line ! 39: pieces. ! 40: .TP ! 41: .BI -e " expression" ! 42: File divisions occur at each line ! 43: that matches a ! 44: .IR grep -style ! 45: regular ! 46: .IR expression ; ! 47: see ! 48: .IR gre (1). ! 49: Multiple ! 50: .B -e ! 51: options may appear. ! 52: If a subexpression of ! 53: .I expression ! 54: is contained in escaped parentheses ! 55: .BR \e( ... \e) , ! 56: the output file name is the portion of the ! 57: line which matches the subexpression. ! 58: .TP ! 59: .BI -f " stem ! 60: Use ! 61: .I stem ! 62: instead of ! 63: .B x ! 64: in output file names. ! 65: .TP ! 66: .BI -s " suffix ! 67: Append ! 68: .I suffix ! 69: to names identified under ! 70: .BR -e . ! 71: .TP ! 72: .B -x ! 73: Exclude the matched input line from the output file. ! 74: .TP ! 75: .B -i ! 76: Ignore case in option ! 77: .BR -e ; ! 78: force output file names (excluding the suffix) ! 79: to lower case. ! 80: .PP ! 81: .I Fsplit ! 82: splits a collection of Fortran subprograms in one ! 83: .I file ! 84: into separate files. ! 85: The options are ! 86: .TP ! 87: .B -f ! 88: .PD0 ! 89: .TP ! 90: .B -e ! 91: .TP ! 92: .B -r ! 93: Set the file suffix: procedure ! 94: .L proc ! 95: will go into file ! 96: .L proc.f ! 97: (default), ! 98: .LR proc.e , ! 99: or ! 100: .L proc.r ! 101: accordingly. ! 102: Block data subprograms will go into files named ! 103: .LR BLOCKDATA1.f , ! 104: etc. ! 105: .PD ! 106: .TP ! 107: .B -i ! 108: Force output file names to lower case. ! 109: .TP ! 110: .B -s ! 111: Strip off data beyond column 72 together with any resulting trailing blanks. ! 112: .SH SEE ALSO ! 113: .IR sed (1), ! 114: .IR awk (1) ! 115: .IR grep ! 116: in ! 117: .IR gre (1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.