valid [options] [file ...]
Validates the structure of one or more rdbtables. Checks number of data fields per line, max width of column names and data values, and checks numeric data type values. Reports errors by line number and column name.
Reads from STDIN if filenames are not given. Writes diagnostic information on STDOUT. Options may be abbreviated.
Options:
If there is more than one file given each file will be identified on the output.
The '-size' option has proven very useful as it shows the actual size of the largest data value for each column, in addition to the template information. The command:
valid -size sample
shows the following output:
0 NAME 6 6
1 COUNT 5N 2
2 TYP 4 1
3 AMT 5N 4
4 OTHER 8 7
5 RIGHT 8> 5
Columns: 6, Rows: 6, File format valid sample
The last two columns above show the defined size of each column in the
rdbtable, and the actual maximum size of the data values for each column
in the rdbtable.