source: trunk/third/lam/lam.1 @ 23441

Revision 23441, 3.5 KB checked in by tabbott, 16 years ago (diff)
In lam: * Remove BSD license 4th clause, as per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.
Line 
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
35lam \- laminate files
36.SH SYNOPSIS
37.B lam [ \-[fp]
38min.max
39.B ] [ \-s
40sepstring
41.B ] [ \-t
42c
43.B ]
44file ...
45.SH DESCRIPTION
46.I Lam
47copies the named files side by side onto the standard output.
48The
49.IR n -th
50input lines from the input
51.IR file s
52are considered fragments of the single long
53.IR n -th
54output line into which they are assembled.
55The name `\fB\-\fP' means the standard input, and may be repeated.
56.PP
57Normally, each option affects only the
58.I file
59after it.
60If the option letter is capitalized it affects all subsequent files
61until it appears again uncapitalized.
62The options are described below.
63.IP \fB\-f\fP\ min.max
64Print line fragments according to the format string
65.IR min.max ,
66where
67.I min
68is the minimum field width and
69.I max
70the maximum field width.
71If
72.I min
73begins with a zero, zeros will be added to make up the field width,
74and if it begins with a `\-', the fragment will be left-adjusted
75within the field.
76.IP \fB\-p\fP\ min.max
77Like \fB\-f\fP,
78but pad this file's field when end-of-file is reached
79and other files are still active.
80.IP \fB\-s\fP\ sepstring
81Print
82.I sepstring
83before printing line fragments from the next file.
84This option may appear after the last file.
85.IP \fB\-t\fP\ c
86The input line terminator is
87.I c
88instead of a newline.
89The newline normally appended to each output line is omitted.
90.PP
91To 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
105The command
106.IC
107lam file1 file2 file3 file4
108.NC
109joins 4 files together along each line.
110To merge the lines from four different files use
111.IC
112lam file1 \-S "\\
113.br
114" file2 file3 file4
115.NC
116Every 2 lines of a file may be joined on one line with
117.IC
118lam \- \- < file
119.NC
120and a form letter with substitutions keyed by `@' can be done with
121.IC
122lam \-t @ letter changes
123.NC
124.SH SEE ALSO
125join(1), pr(1), printf(3)
Note: See TracBrowser for help on using the repository browser.