TFINFO v1.10 - text file statistics |
Revised 2-Jan-99. Copyright (c) 1996-99 by Rune Berg. TextTools Freeware. |
Usage | Description | Options | Return Codes | Version History | tt_r6
Usage | Top | Next |
tfinfo [log logfile] [options] infile [...]
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: don't reports chars that don't occur. | ||||||||||||||||||||||||||
-nh | Don't 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 command line arguments |
104 | Error opening file |
105 | I/O error |
107 | File name clash |
Version History | Top | Previous |
These are the released versions:
Version | Date | Changes |
---|---|---|
1.00 | 19-Sep-97 | n/a |
1.10 | 2-Jan-99 | * -ll limit increased to 99999 * Win32 version now prints coloured response texts |
End of document |