home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / sndbords / proaudio / fddmairq / cat.doc next >
Text File  |  1991-11-20  |  2KB  |  85 lines

  1. CAT - Output Input
  2.  
  3.  
  4. Syntax
  5.  
  6.     cat [-v] [-b[io] [file OR -- [...]]
  7.  
  8.  
  9. Options
  10.  
  11.     b[io]    text operation, i= input, o= output, null= both
  12.     v    verbose, display on error filename on fail to open 
  13.     -    standard input
  14.  
  15.  
  16. Actions
  17.  
  18. Cat reads standard input and/or the specified files and writes to 
  19. standard output.
  20.  
  21. The -v option causes cat to display unopenable files on standard error.
  22.  
  23. The -t option causes the cr/lf translation to be interpreted and EOF
  24. characters processed as end of file.
  25.  
  26. The -- option causes the standard input to be read.  CTRL-Z sends EOF
  27. to terminate the cat of standard input.
  28.  
  29. Files and -- can be specified in any order any number of times.
  30.  
  31.     ? cat q1.doc -- q2.doc -- q3.doc -- 
  32.  
  33.     
  34. Normally, the command
  35.  
  36.     cat prog.exe > newprog.exe
  37.  
  38. will not stop at the first 0x1A (EOF) and will not translate
  39. 0x0D by 0x0A into just 0x0A, and so will make an exact copy.
  40.  
  41.     cat -t cat.exe > newcat.exe
  42.  
  43. will fail.
  44.  
  45. Conversely, the command
  46.  
  47.     cat -t file.doc 
  48.  
  49. will stop at the first EOF and translate all 0x0D-0x0A pairs 
  50. into just 0x0A.
  51.  
  52.  
  53. It is useful if you are trying to "copy" something from inside 
  54. a program that 1) does not provide a "shell", but does 
  55. "pass commands to DOS", and 2) intercepts the "copy" command;  
  56. some programs do this as a safeguard or to provide an interface 
  57. to the copy command.
  58.  
  59.  
  60. =======================================================================
  61.  
  62. cat - copyright SHARK 1991 - Programmer Bart Crane
  63. All Rights Reserved - Distribution Encouraged 
  64. Software Provided As Is, No Warranty Express Or Implied 
  65.  
  66. For More Information on SHARK, Upgrades, and other Utilities:
  67.  
  68.     Mail: 
  69.  
  70.     SHARK
  71.     922 San Leandro Ave. Suite C
  72.     Mountain View, CA  94043
  73.     Telephone:     (415) 969-3015
  74.     Fax:         (415) 969-6600
  75.  
  76.     Internet:
  77.  
  78.     shark@parallax.com
  79.  
  80.     Mediavision BBS:
  81.  
  82.     (415) 770-0968    - Messages To: Bart Crane
  83.  
  84.  
  85.