#

# TFINFO v1.00 - text file statistics

#### Revised 19-Aug-97. Copyright (c) 1997 by Rune Berg. TextTools Freeware.

Usage - Description - Options - Return codes

### USAGE

tfinfo [log logfile] [options] infile [...]

### DESCRIPTION

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

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:
l | number of lines
lc | number of lines that end with carriage return and newline
ln | number of lines that end with newline
ll | number of lines longer than 80 (but see -ll option) chars
c | number of chars
ca | number of ASCII chars
cc | number of control chars
cci | number of individual control chars
cp | number of printable chars
cpi | number of individual printable chars.
cna | number of non-ASCII chars
cnai | number of individual non-ASCII chars
eof | whether file ends with ctrl-Z (hex 1a, DOS EOF char)

-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.

### RETURN CODES

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

##### End of document