Chaos 1.0


Platform:Java, Linux, Mac OS X, Unix, Win2000, Win7 x32, Win7 x64, WinServer, WinVista, WinVista x64, WinXP
Updated:2013-02-22 05:17:40
If you encounter any problems regarding the download process, broken links or have a complaint against the software you have downloaded from our website, please use the link below to report the problem so it gets fixed as soon as possible. Report a problem
Last week downloads: 0
Total downloads: 1561
Average Rating
Your Rating

Measures the "chaos" of each of a set of files. It tells you

1. the average line length.
2. the average deviation from the average line length.
3. the maximum line length.
4. total lines in file.
5. totaL words in file.
6. total characters in file.

You might use it to decide which text files need to be tidied to have
consistent line lengths, or which are so big they should be split.

To calculate a single file, type:

java -jar C:\com\mindprod\chaos\chaos.jar myfile.html

You can also list several files on the command line:

java -jar C:\com\mindprod\chaos\chaos.jar myfile.html C:\mydir\another.html

To compute all the files in the current directory of html files:

java -jar C:\com\mindprod\chaos\chaos.jar .

Sorry no wildcards, just . , and ..

DON'T USE WILDCARDS unless you deeply understand how they work. Windows expands them, not chaos, and feeds them to chaos (or any other program) as a giant list of all the directories and files in the
current directory. Chaos will thus tend process all the files in your directories, when you just meant to process the files in the current directory.

The -s switch makes all subsequent directories searched recursively to include all their subdirectories.


java -jar C:\com\mindprod\chaos\chaos.jar -s E:\mindprod

will process all *.html files in the mindprod directory tree, ignoring non-text files.

If you have the jar extension set up as executable, you can abbreviate:

C:\com\mindprod\chaos\chaos.jar .