home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
211.lha
/
Paste
/
paste.doc
< prev
next >
Wrap
Text File
|
1996-02-14
|
3KB
|
68 lines
This is a version of the UNIX(tm) paste() utility, written by
David Ihnat for the CP/M operating system, and modified to run under
MINIX by David O. Tinker (utgpu!dtinker).
The file paste.c is the source code.The file pastebin.uue contains the
executable file, compiled with the MINIX compiler version 1.1. To extract
use the "uudecode" utility posted by Andy Tanenbaum. If this is in the same
directory as pastebin.uue just type "uudecode < pastebin.uue". An executable
binary file named "paste" will be created in the current directory. This
should have a file size of 7113 bytes, a checksum of 21274 and a block count
of 14 (use "sum" to check). A hex dump of the first 256 bytes of the binary
file should be as follows:
0000000 0301 0410 0020 0000 1950 0000 0259 0000
0000010 0843 0000 0000 0000 0000 0001 0000 0000
0000020 e389 0f8b c383 8902 40c8 e0d1 d801 50a3
0000030 5019 5153 07e8 8300 06c4 e850 11c0 8955
0000040 c7e5 b006 001b 8b00 b01e 891b b21e 8b1b
0000050 065e 1f8b 1e89 1bb4 7e83 0204 037d 92e9
0000060 8300 0646 ff02 044e 5e8b 8b06 801f 2d3f
0000070 0374 8be9 8b00 065e 078b 8940 80c3 003f
0000080 0375 7be9 8b00 065e 078b 8940 8ac3 3007
0000090 98e4 e850 0567 985e eb50 8b47 065e 1f8b
00000A0 c383 5302 52b8 5019 efe8 5e14 805e 523e
00000B0 0019 0f75 8ab8 5019 01b8 5000 c9e8 5e04
00000C0 eb5e b826 1952 e850 0407 eb5e ff1c b006
00000D0 eb1b b816 198c b850 0002 e850 04aa 5e5e
00000E0 07eb 54be 5a19 8ee9 8316 0646 ff02 044e
00000F0 75e9 b8ff 198e b850 0002 e850 048a 5e5e
0000100
Just in case you wish to recreate David Ihnat's original version, I have
included the file paste.diff, made with Erik Baalbergen's "diff" utility.
You may use Erik Baalbergen's "fix" to recreate the original version, i.e.
fix paste.c paste.diff > paste.orig
==========================================================================
Usage: paste [-s] [-d<delimiter>] file1 file2 [file3 ..... ]
where the switch "-s" is for serial processing of files, and the switch
"-d" defines the delimiter character, which is output after each line of
a file is processed. If "-s" is omitted, files are processed one by one
(pasted to-gether).
<delimiter> may be any alphanumeric character, or one of the following
special characters:
'\t' Tab (the default)
'\n' Newline
'\b' Backspace
'\f' Forward one space
'\r' Carriage return (no line feed)
'\0' Null
Note that the following produce identical output:
paste file1 file2
paste -d'\t' file1 file2
paste -d\\t file1 file2
paste -d'\T' file1 file2
paste -d\\T file1 file2
You can use paste to transpose a column of entries into a row, as follows:
paste -s -d\\f file1 (or: paste -s -d\\t file1 for tabs between).