Usage - Description - Options - Return codes
tfinfo [log logfile] [options] infile [...]
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.
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..999). | ||||||||||||||||||||||||||
-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. |
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 |