|
|
1.1 ! root 1: .so tmac.ilib ! 2: .TH DELAMC 1 "The University of Arizona \- 8/15/84" ! 3: .SH NAME ! 4: delamc \- delaminate a file using separator characters ! 5: .SH SYNOPSIS ! 6: \f3delamc\fP [\-tchars] {infile | \-} {outputfile | \-}... ! 7: .SH DESCRIPTION ! 8: \fIDelamc\fR delaminates an input file into several output files ! 9: according to the separator characters specified by the \f3chars\fR ! 10: argument following the \f3\-t\fR flag. ! 11: \fIDelamc\fR reads \f3infile\fR and writes the fields in each line to the ! 12: corresponding output files as individual lines. If no data occurs in ! 13: the specified position for a given input line an empty output line is ! 14: written. This insures that all output files contain the same number of ! 15: lines as the input file. ! 16: .PP ! 17: If `\-' is used for \f3infile\fR, the standard input is read. ! 18: If `\-' is used as an output file name, the corresponding field ! 19: is written to the standard output. If the \f3\-t\fR flag is not used, ! 20: an ascii horizontal tab character is assumed as the default ! 21: field separator. ! 22: .PP ! 23: The use of \fIdelamc\fR is illustrated by the following examples. ! 24: .DS ! 25: delamc tst.asm labels opcodes operands ! 26: .DE ! 27: reads the file \fItst.asm\fR and writes the fields, each of which is ! 28: separated by a tab character, to the output files \fIlabels\fR, \fIopcodes\fR, ! 29: and \fIoperands\fR. ! 30: .DS ! 31: delamc \-t: scores names matric ps1 ps2 ps3 ! 32: .DE ! 33: reads the file \fIscores\fR and writes the fields, each of which is ! 34: separated by a colon, to the indicated output files. ! 35: .DS ! 36: delamc \-t,:; oldata f1 f2 ! 37: .DE ! 38: reads the file \fIoldata\fR and separates the fields using either a comma, ! 39: a colon, or a semicolon. ! 40: .SH NOTES ! 41: The functionality of the Software Tools \fIdelam\fR has ! 42: been divided. \fIDelamc\fR differs from the Tools ! 43: syntax by allowing a set of separation characters to be specified. ! 44: .SH SEE ALSO ! 45: lam(1), ! 46: delam(1) ! 47: .LP ! 48: .St ! 49: .SH AUTHOR ! 50: Thomas R. Hicks
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.