home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
sndbords
/
proaudio
/
fddmairq
/
cat.doc
next >
Wrap
Text File
|
1991-11-20
|
2KB
|
85 lines
CAT - Output Input
Syntax
cat [-v] [-b[io] [file OR -- [...]]
Options
b[io] text operation, i= input, o= output, null= both
v verbose, display on error filename on fail to open
- standard input
Actions
Cat reads standard input and/or the specified files and writes to
standard output.
The -v option causes cat to display unopenable files on standard error.
The -t option causes the cr/lf translation to be interpreted and EOF
characters processed as end of file.
The -- option causes the standard input to be read. CTRL-Z sends EOF
to terminate the cat of standard input.
Files and -- can be specified in any order any number of times.
? cat q1.doc -- q2.doc -- q3.doc --
Normally, the command
cat prog.exe > newprog.exe
will not stop at the first 0x1A (EOF) and will not translate
0x0D by 0x0A into just 0x0A, and so will make an exact copy.
cat -t cat.exe > newcat.exe
will fail.
Conversely, the command
cat -t file.doc
will stop at the first EOF and translate all 0x0D-0x0A pairs
into just 0x0A.
It is useful if you are trying to "copy" something from inside
a program that 1) does not provide a "shell", but does
"pass commands to DOS", and 2) intercepts the "copy" command;
some programs do this as a safeguard or to provide an interface
to the copy command.
=======================================================================
cat - copyright SHARK 1991 - Programmer Bart Crane
All Rights Reserved - Distribution Encouraged
Software Provided As Is, No Warranty Express Or Implied
For More Information on SHARK, Upgrades, and other Utilities:
Mail:
SHARK
922 San Leandro Ave. Suite C
Mountain View, CA 94043
Telephone: (415) 969-3015
Fax: (415) 969-6600
Internet:
shark@parallax.com
Mediavision BBS:
(415) 770-0968 - Messages To: Bart Crane