LAM(1) BSD Reference Manual LAM(1)
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
l
\bla
\bam
\bm [
\b[ -
\b-[
\b[f
\bfp
\bp]
\b] min.max ]
\b] [
\b[ -
\b-s
\bs sepstring ]
\b] [
\b[ -
\b-t
\bt c ]
\b] file ...
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
_
\bL_
\ba_
\bm copies the named files side by side onto the standard
output. The _
\bn-th input lines from the input _
\bf_
\bi_
\bl_
\bes are
considered fragments of the single long _
\bn-th output line
into which they are assembled. The name `-
\b-' means the
standard input, and may be repeated.
Normally, each option affects only the _
\bf_
\bi_
\bl_
\be after it. If
the option letter is capitalized it affects all subsequent
files until it appears again uncapitalized. The options
Print line fragments according to the format string
_
\bm_
\bi_
\bn_
\b._
\bm_
\ba_
\bx, where _
\bm_
\bi_
\bn is the minimum field width and
_
\bm_
\ba_
\bx the maximum field width. If _
\bm_
\bi_
\bn begins with a
zero, zeros will be added to make up the field
width, and if it begins with a `-', the fragment
will be left-adjusted within the field.
Like -
\b-f
\bf, but pad this file's field when end-of-file
is reached and other files are still active.
Print _
\bs_
\be_
\bp_
\bs_
\bt_
\br_
\bi_
\bn_
\bg before printing line fragments from
the next file. This option may appear after the
-
\b-t
\bt c The input line terminator is _
\bc instead of a new-
line. The newline normally appended to each output
To print files simultaneously for easy viewing use _
\bp_
\br(1).
E
\bEX
\bXA
\bAM
\bMP
\bPL
\bLE
\bES
\bS
l
\bla
\bam
\bm f
\bfi
\bil
\ble
\be1
\b1 f
\bfi
\bil
\ble
\be2
\b2 f
\bfi
\bil
\ble
\be3
\b3 f
\bfi
\bil
\ble
\be4
\b4
joins 4 files together along each line. To merge the
lines from four different files use
l
\bla
\bam
\bm f
\bfi
\bil
\ble
\be1
\b1 -
\b-S
\bS "
\b"\
\b\
"
\b" f
\bfi
\bil
\ble
\be2
\b2 f
\bfi
\bil
\ble
\be3
\b3 f
\bfi
\bil
\ble
\be4
\b4
4th Berkeley Distribution June 6, 1993 1
LAM(1) BSD Reference Manual LAM(1)
Every 2 lines of a file may be joined on one line with
l
\bla
\bam
\bm -
\b- -
\b- <
\b< f
\bfi
\bil
\ble
\be
and a form letter with substitutions keyed by `@' can be
l
\bla
\bam
\bm -
\b-t
\bt @
\b@ l
\ble
\bet
\btt
\bte
\ber
\br c
\bch
\bha
\ban
\bng
\bge
\bes
\bs
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
join(1), pr(1), printf(3)
4th Berkeley Distribution June 6, 1993 2