|
|
1.1 ! root 1: .TH LAM 1 "14 June 1983" ! 2: .UC 4 ! 3: .SH NAME ! 4: lam \- laminate files ! 5: .SH SYNOPSIS ! 6: .B lam [ \-[fp] ! 7: min.max ! 8: .B ] [ \-s ! 9: sepstring ! 10: .B ] [ \-t ! 11: c ! 12: .B ] ! 13: file ... ! 14: .SH DESCRIPTION ! 15: .I Lam ! 16: copies the named files side by side onto the standard output. ! 17: The ! 18: .IR n -th ! 19: input lines from the input ! 20: .IR file s ! 21: are considered fragments of the single long ! 22: .IR n -th ! 23: output line into which they are assembled. ! 24: The name `\fB\-\fP' means the standard input, and may be repeated. ! 25: .PP ! 26: Normally, each option affects only the ! 27: .I file ! 28: after it. ! 29: If the option letter is capitalized it affects all subsequent files ! 30: until it appears again uncapitalized. ! 31: The options are described below. ! 32: .IP \fB\-f\fP\ min.max ! 33: Print line fragments according to ! 34: .IR min.max , ! 35: where ! 36: .I min ! 37: is the minimum field width and ! 38: .I max ! 39: the maximum field width. ! 40: If ! 41: .I min ! 42: begins with a zero, zeros will be added to make up the field width, ! 43: and if it begins with a `\-', the fragment will be left-adjusted ! 44: within the field. ! 45: .IP \fB\-p\fP\ min.max ! 46: Like \fB\-f\fP, ! 47: but pad this file's field when end-of-file is reached ! 48: and other files are still active. ! 49: .IP \fB\-s\fP\ sepstring ! 50: Print ! 51: .I sepstring ! 52: before printing line fragments from the next file. ! 53: This option may appear after the last file. ! 54: .IP \fB\-t\fP\ c ! 55: The input line terminator is ! 56: .I c ! 57: instead of a newline. ! 58: The newline normally appended to each output line is omitted. ! 59: .PP ! 60: To print files simultaneously for easy viewing use ! 61: .IR pr (1). ! 62: .SH EXAMPLES ! 63: .de IC ! 64: .IP ! 65: .ss 36 ! 66: .ft B ! 67: .. ! 68: .de NC ! 69: .br ! 70: .ss 12 ! 71: .PP ! 72: .. ! 73: .PP ! 74: The command ! 75: .IC ! 76: lam file1 file2 file3 file4 ! 77: .NC ! 78: joins 4 files together along each line. ! 79: To merge the lines from four different files use ! 80: .IC ! 81: lam file1 \-S "\\ ! 82: .br ! 83: " file2 file3 file4 ! 84: .NC ! 85: Every 2 lines of a file may be joined on one line with ! 86: .IC ! 87: lam \- \- < file ! 88: .NC ! 89: and a form letter with substitutions keyed by `@' can be done with ! 90: .IC ! 91: lam \-T @ letter changes ! 92: .NC ! 93: .SH SEE ALSO ! 94: pr(1), join(1), printf(3) ! 95: .SH AUTHOR ! 96: John Kunze ! 97: .SH BUGS
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.