Name
lam
Synopsis
lam [options
]file
...
Laminate files. Lines are read from the given
files and pasted together side by side. In
other words, line 1 of the output is the concatenation of line 1
from each input file, line 2 is the concatenation of line 2 from
each input file, and so on. Use -
to mean standard input.
Options
-
-f
min
.
max
Use min as the minimum field width for the following file’s lines, and max as the maximum field width. min may start with a zero, in which case padding is done with zeros. It may also start with a
-
, in which case the output is left-adjusted.-
-F
min
.
max
Like
-f
, but apply the field width specification to all following input files, until another-f
is encountered.-
-p
min
.
max
Like
-f
, but pad this file’s field in the output if end-of-file is encountered on it while the other files still have data.-
-P
min
.
max
Like
-p
, but apply the field width specification to all following input files, until another-p
is encountered.-
-s
sep
Print sep after the following file’s line, before the line from the next file. Normally, the lines are joined without any intervening separator.
-
-S
sep
Like
-S
, but apply the separator specification to all following input files, until another-s
is encountered.-
-t
char
Input lines are terminated by the character char, instead of newline.
-
-T
char
Like
-t
, but apply the input line terminator specification to all following input files, until another-t
is encountered.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.