home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
604a.lha
/
TextStat_v1.10
/
TextStat.doc
< prev
next >
Wrap
Text File
|
1992-01-05
|
3KB
|
81 lines
TextStat
v1.10
Written by Stefan Zeiger in 1991
© 1991 by ! WIZARD WORKS ! , All Rights Reserved
I first got the idea to this program when I watched "Wheel of fortune". I
thought, that in german the most common letters were E,I,A,N,D,S,T,L. And
since I have many long texts in various languages on my disks (e.g. manuals
for PD programs), it would be nice if I could count the frequency of the
letters in a text file. So I wrote "TextStat". I also added all features of
the program "wc" (word count) from the SAS/C package to make the program more
useful to a greater number of people.
The program can only be started from the CLI or Shell. The command line syntax
is : TextStat <filename> [-a]
(You can also get this sytax by typing "TextStat ?")
TextStat will give you the following information about the ASCII text specified
as "filename" :
LINES The number of lines in the text.
WORDS The number of "words" in the text. ("words" are separated
by whitespaces or linefeeds)
CHARS All characters in the text.
ALPHANUMERIC CHARS The number of alphanumeric characters in the text.
ALPHABETIC CHARS The number of alphabetic chars in the text.
ASCII CHARACTERS The number of ASCII characters in the text.
PRINTABLE CHARS Characters that can be displayed by a printer.
WHITESPACES The number of whitespace characters in the text.
NON-WHITE CHARS That's CHARS - WHITESPACES.
CONTROL CHARACTERS All characters that can be entered on the keyboard with
the "Ctrl" key.
C SYMBOL CHARS All characters that can be interpreted as C symbol
characters.
C SYMBOL LEAD CHARS Similar to C SYMBOL CHARS.
GRAPHIC CHARACTERS The graphic characters of the extended ASCII character
set.
PUNCTUATION CHARS Things like "." or ",".
UPPER CASE CHARS All upper-case alphabetical characters.
LOWER CASE CHARS Similar to UPPER CASE CHARS.
DECIMAL DIGIT CHARS All numbers.
HEX DIGIT CHARS Numbers plus "ABCDEF".
CHECKSUM A checksum of the complete text. (Useful for checking
texts transferred via modem)
This checksum is NOT COMPATIBLE to the chacksum of "wc".
If you specify the option "-a" (always AFTER the filename !), TextStat will
print 3 lists onto the screen :
1. All (printable) characters [ASC] sorted by their ASCII numbers [DEC]
together with the number of their appearance in the text. [COUNT]
2. Same as "1.", but sorted by "COUNT".
3. All alphabetical characters (case-insensitive) sorted by "COUNT".
TextStat v1.10 was compiled using SAS/C 5.10.
This software is FREEWARE. It is copyrighted (c) 1991 by ! WIZARD WORKS !.
It may be distributed for non-profit only. No redistribution of any modified
files is allowed. All files ( TextStat, TextStat.c, TextStat.Demo, LMKFile,
TextStat.doc ) must be kept together. Circumvention of these terms requires
the written permission of the Author (me).
Bye,
Stefan.
-----------------------------------------------------------------------------
STANDARD MAIL : ! WIZARD WORKS !
Stefan Zeiger
Seligenstaedter Weg 24
D-W-8756 Kahl
West Germany
VOICE : (49)-6188-2525
-----------------------------------------------------------------------------