[BACK]Return to lam.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / lam

Annotation of src/usr.bin/lam/lam.1, Revision 1.3

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