home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d747
/
aush.lha
/
AUSH
/
ExtraCmds.lha
/
englishdocs
/
paste.doc
< prev
next >
Wrap
Text File
|
1992-09-04
|
2KB
|
58 lines
NAME
paste - merge same lines of several files or subsequent lines of
one file
SYNOPSIS
paste [ -dlist ] file...
paste -s [ -dlist ] file...
DESCRIPTION
In the first form, paste concatenates corresponding lines of the
given input files. It treats each file as a column or columns of a
table and pastes them together horizontally (parallel merging).
In the second form above, paste the function of an older command
with the same name by combining subsequent lines of the input files
(serial merging).
In all cases, lines are glued together with a tab, or with characters
from an optionally specified list. Output is send to the standard
output.
The meanings of the options are:
-d Without this option, the new-line characters of each but the
last file (or last line in case of the -s option) are replaced
by a tab character. This option allows replacing the tab
character by one or more alternate characters (see below).
list One or more characters immediately following -d replace the
default tab as the line concatenation character. The list
is used circularly, i.e., when exhausted, it is reused.
The list may contain the special escape sequences:
\n new-line
\t tab
\\ backslash
-s Merge subsequent lines rather than one from each input file.
Use tab for concatenation, unless a list is specified with
-d option.
- May be used in place of any file name, to read a line from
the standard input.
RETURN CODES
0 if all went well
1 in case of bad argument (fatal)
2 if at least one file couldn't be opened (non fatal)
3 if some memory couldn't be allocated (fatal)
CHANGES FROM UNIX
output lines length not limited
\0 in list not supported
-s option works even with only one file name
result of paste with -s option is not the same (but is more logic
to my mind)
AUTHOR
Denis GOUNELLE
Last modified 04-Sep-92