stat command

The stat command outputs the total number of items processed and an average value of all items that meet the specified selection criteria.

Syntax

stat file.reference {item.list} {selection.criteria} {(options)}

Example(s)

stat invoices with date > "1/1/05" amount
Total = 73970 average = 1946.57 count = 38