home *** CD-ROM | disk | FTP | other *** search
-
- NAME
- Scan - display the character contents of any file
-
- AUTHOR
- Dan Fish (console routine by Jim Cooper)
-
- SYNOPSIS
-
- Scan <infile> [outfile] [-s(ort)]
-
- ARGUMENTS
-
- <...> denotes required argument(s)
- [...] denotes optional argument(s)
- (...) denotes optional extraneous input
-
- FLAGS
-
- Currently only one: -s (or -sort)
-
- If the -s flag is applied, the output will be sorted in descending
- order of character frequency. Default output is to display the
- characters in the ascii sequence of 0-255
-
- DESCRIPTION
-
- Displays the individual character count and percentage of total for
- each different character in a file. Character values are displayed
- in ASCII and Hex along with the actual character (if displayable).
- Non-printable characters (as determined by the isprint() function)
- are highlighted for easy identification.
-
- The listing is displayed on a console window. To page through the
- listing press the space bar. To exit, use <ESC>, <Q> or <CTRL>-C.
- At the bottom of each page a status line shows the current page, the
- total number of characters in the file, the number of different
- characters, and the input filename.
-
- Possible uses would be to scan a file for relative character counts
- (I.E. cryptography), scan files for binary characters, scan data or
- source files for a matching number of (),{},[], scan text files to
- determine LF/CR configurations, etc...
-
-
- BUGS (and other features)
-
-
- Under WB 2.0, expect some strange results if you are using different
- height fonts for the system default and screen fonts. The console
- routines are not quite smart enough to figure these out.
-
- While most uses of the -s(ort) switch will work with a stack as
- little as 4K, some may require a stack setting of up to about
- 20K.
-
-