home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
sysutl
/
dantools.arc
/
SUMMARY
< prev
next >
Wrap
Text File
|
1987-07-09
|
3KB
|
105 lines
A brief description of each utility is here. More details may be found
by running the program with this single argument: "-?".
DISCLAIMER: These programs are provided "as is" [are?] and should be
used at your own risk. I have written these programs to be compatible
with more recent versions of MS-DOS, but I make no claim that any of
these programs will actually work on any particular computer. I cannot
even guarantee that this code will not destroy data on your computer.
I have tested these programs on my own computer and I expect that, if
used properly, they will cause no harm and will work just fine. If you
experience problems, please let me know, I am very interested in making
them work properly.
atob, btoa - Btoa converts a binary file to ASCII. Atob converts such
an ASCII file back to its original form.
Example: btoa <DANTOOLS.ARC >DANTOOLS.ASC
cal - print out any calendar from 100 A.D. to the present (and future).
Try September, 1752.
Example: cal 9 1752
cat - copy files to standard output.
Example: cat -n test.c
chmod - Change attributes of an MSDOS file.
Example: chmod +r chmod.c
compress - compress a file. This program requires a tremendous amount
of memory (488k). This is a 16-bit implementation.
Example: compress <DANTOOLS.ARC >DANTOOLS.CMP
detab, entab - remove or add tab characters to a file. This is real
handy for fixing-up a file which which does not use tabs or if they are
used inconsistently.
Example: detab <test.c | entab >clean.c
head, tail - print the first or last lines/blocks/characters of a file.
Example: head test.c
pr - format a file for output to a printer. The "-i" option is handy
for printing files which are not indented (such as this one).
Example: pr -i summary >prn
swchar - change the MSDOS switch character. This does not affect these
utilities, which always require a hyphen. The DOS utilities, however,
may honor "-" rather than "/" if this command is used. Changing the
switch to "-" will also allow the use of "/" as a directory separator
(instead of "\").
Example: swchar -
touch - change the modification date of a file.
Example: touch *.c
udate - display the current date and time. It is named udate, rather
than date, since the DOS date command conflicts.
Example: udate >>myprog.exe
uudecode, uuencode - like btoa and atob, but less efficient. The
current "standard" for Usenet exchange.
Example: uudecode <atob.uue
Some of these programs (specifically pr & udate), require the setting of
the TZ environment variable. It should be set as follows:
Daylight Normal
East: EST5EDT EST6
Central: CST6CDT CST7
Mountain: MST7MDT MST8
Pacific: PST8PDT PST9
If unspecified, it defaults to PST8PDT. If you are in another timezone,
the above format is 1) 3 digits of zone name, 2) number of hours from
GMT, and 3) daylight savings notation, if daylight savings time is
currently in effect.
--
Daniel A. Norton ...{lll-lcc,ptsfa,hplabs}!well!nortond
544 Cormorant Drive
Voorhees, NJ 08043 609/424-5869