1 | .\" $NetBSD: lam.1,v 1.2 1994/11/14 20:27:40 jtc Exp $ |
---|
2 | .\" |
---|
3 | .\" Copyright (c) 1993 |
---|
4 | .\" The Regents of the University of California. All rights reserved. |
---|
5 | .\" |
---|
6 | .\" Redistribution and use in source and binary forms, with or without |
---|
7 | .\" modification, are permitted provided that the following conditions |
---|
8 | .\" are met: |
---|
9 | .\" 1. Redistributions of source code must retain the above copyright |
---|
10 | .\" notice, this list of conditions and the following disclaimer. |
---|
11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
---|
12 | .\" notice, this list of conditions and the following disclaimer in the |
---|
13 | .\" documentation and/or other materials provided with the distribution. |
---|
14 | .\" 3. Neither the name of the University nor the names of its contributors |
---|
15 | .\" may be used to endorse or promote products derived from this software |
---|
16 | .\" without specific prior written permission. |
---|
17 | .\" |
---|
18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
---|
19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
---|
22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
---|
25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
---|
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
---|
28 | .\" SUCH DAMAGE. |
---|
29 | .\" |
---|
30 | .\" @(#)lam.1 8.1 (Berkeley) 6/6/93 |
---|
31 | .\" |
---|
32 | .TH LAM 1 "June 6, 1993" |
---|
33 | .UC 4 |
---|
34 | .SH NAME |
---|
35 | lam \- laminate files |
---|
36 | .SH SYNOPSIS |
---|
37 | .B lam [ \-[fp] |
---|
38 | min.max |
---|
39 | .B ] [ \-s |
---|
40 | sepstring |
---|
41 | .B ] [ \-t |
---|
42 | c |
---|
43 | .B ] |
---|
44 | file ... |
---|
45 | .SH DESCRIPTION |
---|
46 | .I Lam |
---|
47 | copies the named files side by side onto the standard output. |
---|
48 | The |
---|
49 | .IR n -th |
---|
50 | input lines from the input |
---|
51 | .IR file s |
---|
52 | are considered fragments of the single long |
---|
53 | .IR n -th |
---|
54 | output line into which they are assembled. |
---|
55 | The name `\fB\-\fP' means the standard input, and may be repeated. |
---|
56 | .PP |
---|
57 | Normally, each option affects only the |
---|
58 | .I file |
---|
59 | after it. |
---|
60 | If the option letter is capitalized it affects all subsequent files |
---|
61 | until it appears again uncapitalized. |
---|
62 | The options are described below. |
---|
63 | .IP \fB\-f\fP\ min.max |
---|
64 | Print line fragments according to the format string |
---|
65 | .IR min.max , |
---|
66 | where |
---|
67 | .I min |
---|
68 | is the minimum field width and |
---|
69 | .I max |
---|
70 | the maximum field width. |
---|
71 | If |
---|
72 | .I min |
---|
73 | begins with a zero, zeros will be added to make up the field width, |
---|
74 | and if it begins with a `\-', the fragment will be left-adjusted |
---|
75 | within the field. |
---|
76 | .IP \fB\-p\fP\ min.max |
---|
77 | Like \fB\-f\fP, |
---|
78 | but pad this file's field when end-of-file is reached |
---|
79 | and other files are still active. |
---|
80 | .IP \fB\-s\fP\ sepstring |
---|
81 | Print |
---|
82 | .I sepstring |
---|
83 | before printing line fragments from the next file. |
---|
84 | This option may appear after the last file. |
---|
85 | .IP \fB\-t\fP\ c |
---|
86 | The input line terminator is |
---|
87 | .I c |
---|
88 | instead of a newline. |
---|
89 | The newline normally appended to each output line is omitted. |
---|
90 | .PP |
---|
91 | To print files simultaneously for easy viewing use |
---|
92 | .IR pr (1). |
---|
93 | .SH EXAMPLES |
---|
94 | .de IC |
---|
95 | .IP |
---|
96 | .ss 36 |
---|
97 | .ft B |
---|
98 | .. |
---|
99 | .de NC |
---|
100 | .br |
---|
101 | .ss 12 |
---|
102 | .PP |
---|
103 | .. |
---|
104 | .PP |
---|
105 | The command |
---|
106 | .IC |
---|
107 | lam file1 file2 file3 file4 |
---|
108 | .NC |
---|
109 | joins 4 files together along each line. |
---|
110 | To merge the lines from four different files use |
---|
111 | .IC |
---|
112 | lam file1 \-S "\\ |
---|
113 | .br |
---|
114 | " file2 file3 file4 |
---|
115 | .NC |
---|
116 | Every 2 lines of a file may be joined on one line with |
---|
117 | .IC |
---|
118 | lam \- \- < file |
---|
119 | .NC |
---|
120 | and a form letter with substitutions keyed by `@' can be done with |
---|
121 | .IC |
---|
122 | lam \-t @ letter changes |
---|
123 | .NC |
---|
124 | .SH SEE ALSO |
---|
125 | join(1), pr(1), printf(3) |
---|