NAME

App::csvtool::Summarizing - summarize tabular data in csvtool

count

$ csvtool count -fFIELD INPUT...

Counts the number of rows that have distinct values for the selected field.

Outputs a new table having only two columns. The first column will be the distinct values of the selected field that were found in the input, the second column will be an integer giving the number of rows of the input which had that that value. Rows are output in order of the first time each distinct value was seen in the input.

Besides the selected key field, all other fields of the input are ignored.

--field, -f

The field index to use as the counting key (defaults to 1).

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>