|
|
1.1 ! root 1: .so tmac.ilib ! 2: .TH LAM 1 "The University of Arizona \- 6/28/83" ! 3: .SH NAME ! 4: lam \- laminate files ! 5: .SH SYNOPSIS ! 6: \f3lam\fR file [ file | \- string ] ... ! 7: .SH DESCRIPTION ! 8: .I Lam ! 9: laminates the named files onto the standard output. ! 10: The resulting output is the line-by-line concatenation ! 11: of corresponding lines from each file named. ! 12: If the files are different lengths, ! 13: empty lines are substituted for missing lines in the shorter files. ! 14: .PP ! 15: Each ! 16: .I string ! 17: argument is placed in the output line ! 18: at the point that it appears in the argument list. ! 19: For example, lines from \fIfile1\fR and \fIfile2\fR can be laminated ! 20: with a colon between each line from \fIfile1\fR and the corresponding ! 21: line from \fIfile2\fR by the command ! 22: .DS ! 23: lam file1 \-: file2 ! 24: .DE ! 25: .PP ! 26: Filenames and strings may appear in any order in the argument list. ! 27: If ! 28: `\-', ! 29: is given for a filename ! 30: the standard input is read at that point. ! 31: If a file is named more than once, ! 32: each of its lines will be duplicated on the output line, ! 33: except that if standard input is named more than once, ! 34: its lines will be read alternately. ! 35: For example, each pair of lines from standard input can be ! 36: joined onto one line with a space between them by the command ! 37: .DS ! 38: lam \- "\-\0" \- ! 39: .DE ! 40: .LP ! 41: while the command ! 42: .DS ! 43: lam file1 "\-\0" file1 ! 44: .DE ! 45: .LP ! 46: replicates each line from \fIfile1\fR. ! 47: .SH SEE ALSO ! 48: delam(1), delamc(1) ! 49: .LP ! 50: .St ! 51: .SH AUTHOR ! 52: Thomas R. Hicks
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.