TFINFO v1.11 - text file statistics |
Documentation revised 21 Oct 00 - Copyright (c) 1996-2000 by Rune Berg. TextTools Freeware. |
Contents:
Usage | Top || Next |
tfinfo [log logfile] [options] infile [...]
See Understanding The Usage Section for details.
Description | Top || Previous || Next |
tfinfo reads the text file infile(s), and prints to standard output a report on the number of lines, characters, end-of-line style etc. in infile, e.g.:
Information on file "tfinfo.htm" -- Sun May 18 23:35:11 1997 Lines ____________________: 78 e/w cr+nl _____________: 78 e/w nl ________________: 0 > 80 chars ___________: 1 Chars ____________________: 2428 ASCII _________________: 2428 Control ____________: 156 Printable __________: 2272 Non-ASCII _____________: 0 File e/w DOS EOF? ________: No
If you don't specify logfile, tfinfo writes error messages to standard error.
Options | Top || Previous || Next |
tfinfo recognizes the following command line options:
Option | Function | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-r=subreport,... -r-subreport,... -r+subreport,... |
Specify exactly (=), turn off (-), or turn
on (+) the subreport(s). By default, all subreports are on, except cci, cai, and cnai. Subreports are:
| ||||||||||||||||||||||||||
-ll=N | Set limit for ll subreport to N (0..99999). | ||||||||||||||||||||||||||
-nzi | For cci, cpi, and cnai subreports: do not report non-occuring chars. | ||||||||||||||||||||||||||
-nh | Do not print "Information on ..." header. | ||||||||||||||||||||||||||
-hr | Help on subreports. | ||||||||||||||||||||||||||
-v | Print version banner and usage info to standard error (or logfile, if given), then exit. |
Return Codes | Top || Previous || Next |
tfinfo returns with one of the following codes ("error levels"):
Code | Meaning |
---|---|
0 | Success |
102 | Incorrect/missing command line arguments |
104 | Error opening file |
105 | I/O Error |
107 | File name clash |
For more details, see TextTools General Features.
Version History | Top || Previous |
These are the released versions of tfinfo:
Version | Date | Changes |
---|---|---|
1.00 | 19-Sep-97 | n/a |
1.10 | 2-Jan-99 |
|
1.11 | 21-Oct-00 |
|
End of document |