The stat command provides basic statistics on the number of records and fields in CSV data files. For example, running the command:
csvfix stat data/names.dat
produces this output:
"data/names.csv","7","3","3"
which says that names.csv contains 7 records, the shortest of which contains 3 fields, and the longest of which contains 3 fields. Note that the number of records is not necessarily the same as the number of lines in the file, as a CSV record can span multiple lines.
Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle