home *** CD-ROM | disk | FTP | other *** search
- This posting contains two very simple utilities: WORDCNT and
- DU.
-
- WORDCNT is a simple word and line counter for text files. It
- is a memory hog in that it reads the entire file into memory (to
- avoid thrashing the drive) before counting. It counts only
- alphanumeric strings as words and ignores punctuation.
- usage: WORDCNT filename
-
- DU is similar to the *NIX utility of the same name. It
- displays the sizes of the directory names passed to it.
- usage: DU [-s] [dir1] [dir2] [dir3...]
- With no arguments, DU starts from the current directory, otherwise
- it examines the series of directories specified on the command
- line. A drive spec (e.g. a:, c:, etc.) is a valid argument as
- well.
- The -s option displays the total for files in the listed directory
- ONLY as well as the total which includes the subdirectories.
-
- Source for Turbo C 2.0 is included. The binaries were
- processed with EXE2BIN into COM files.
- I don't really care if you copy these. However, as per Borland's
- requirements, they both bear embedded Borland copyrights.
-
-
- WARNING: I ran across an odd problem with DU and DOS 4.0 (the
- unfixed version) -- it lost the ability to distinguish between a
- directory and a file with no extension. However, that was a
- version ago. I haven't tested the new version with DOS 4.0
- because I'm not using 4.0 anymore.
-
- Please send any bug reports or comments to me at:
- James W. Birdsall jwbirdsa@phoenix.Princeton.EDU jwbirdsa@pucc.BITNET
- ...allegra!princeton!phoenix!jwbirdsa Compu$erve: 71261,1731
- [but note that I'm not on Compu$erve very often]
-