home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d136 / paste.lha / Paste / paste.doc < prev    next >
Text File  |  1988-03-19  |  3KB  |  68 lines

  1. This is a version of the UNIX(tm) paste() utility, written by 
  2. David Ihnat for the CP/M operating system, and modified to run under
  3. MINIX by David O. Tinker (utgpu!dtinker).
  4.  
  5. The file paste.c is the source code.The file pastebin.uue contains the
  6. executable file, compiled with the MINIX compiler version 1.1.  To extract
  7. use the "uudecode" utility posted by Andy Tanenbaum.  If this is in the same
  8. directory as pastebin.uue just type "uudecode < pastebin.uue".  An executable
  9. binary file named "paste" will be created in the current directory. This
  10. should have a file size of 7113 bytes, a checksum of 21274 and a block count
  11. of 14 (use "sum" to check).  A hex dump of the first 256 bytes of the binary
  12. file should be as follows:
  13.  
  14. 0000000 0301 0410 0020 0000 1950 0000 0259 0000
  15. 0000010 0843 0000 0000 0000 0000 0001 0000 0000
  16. 0000020 e389 0f8b c383 8902 40c8 e0d1 d801 50a3
  17. 0000030 5019 5153 07e8 8300 06c4 e850 11c0 8955
  18. 0000040 c7e5 b006 001b 8b00 b01e 891b b21e 8b1b
  19. 0000050 065e 1f8b 1e89 1bb4 7e83 0204 037d 92e9
  20. 0000060 8300 0646 ff02 044e 5e8b 8b06 801f 2d3f
  21. 0000070 0374 8be9 8b00 065e 078b 8940 80c3 003f
  22. 0000080 0375 7be9 8b00 065e 078b 8940 8ac3 3007
  23. 0000090 98e4 e850 0567 985e eb50 8b47 065e 1f8b
  24. 00000A0 c383 5302 52b8 5019 efe8 5e14 805e 523e
  25. 00000B0 0019 0f75 8ab8 5019 01b8 5000 c9e8 5e04
  26. 00000C0 eb5e b826 1952 e850 0407 eb5e ff1c b006
  27. 00000D0 eb1b b816 198c b850 0002 e850 04aa 5e5e
  28. 00000E0 07eb 54be 5a19 8ee9 8316 0646 ff02 044e
  29. 00000F0 75e9 b8ff 198e b850 0002 e850 048a 5e5e
  30. 0000100
  31.  
  32. Just in case you wish to recreate David Ihnat's original version, I have
  33. included the file paste.diff, made with Erik Baalbergen's "diff" utility.
  34. You may use Erik Baalbergen's "fix" to recreate the original version, i.e.
  35.  
  36.     fix paste.c paste.diff > paste.orig
  37.  
  38. ==========================================================================
  39.  
  40. Usage: paste [-s] [-d<delimiter>] file1 file2 [file3 ..... ]
  41.  
  42. where the switch "-s" is for serial processing of files, and the switch
  43. "-d" defines the delimiter character, which is output after each line of
  44. a file is processed.  If "-s" is omitted, files are processed one by one
  45. (pasted to-gether).
  46.  
  47. <delimiter> may be any alphanumeric character, or one of the following
  48. special characters:
  49.  
  50. '\t'    Tab (the default)
  51. '\n'    Newline
  52. '\b'    Backspace
  53. '\f'    Forward one space
  54. '\r'    Carriage return (no line feed)
  55. '\0'    Null
  56.  
  57. Note that the following produce identical output:
  58.     paste file1 file2
  59.     paste -d'\t' file1 file2
  60.     paste -d\\t file1 file2
  61.     paste -d'\T' file1 file2
  62.     paste -d\\T file1 file2
  63.  
  64. You can use paste to transpose a column of entries into a row, as follows:
  65.     paste -s -d\\f file1   (or: paste -s -d\\t file1 for tabs between).
  66.  
  67.  
  68.