pdbaddtypes - strip typing information from the FSDB header

pdbaddtypes adds datatypes to the header so languages with typing support (eg, Python and Go) can parse FSDB files and output properly typed variables. Older data, or data generated by older tools may not be properly typed. The -a flag can be used to attempt auto-typing, but is based on analyzing only the first row.

Example input (myfile.fsdb):

#fsdb -F t col1 two andthree
1	key1	42.0
2	key2	123.0
3	key1	90.2

Example command usage

$ pdbaddtypes -a myfile.fsdb

Example output

#fsdb -F t col1:l two:a andthree:d
1	key1	42.0
2	key2	123.0
3	key1	90.2

Example command usage with specified typing

$ pdbaddtypes -t col1=l andthree=d -- myfile-notypes.fsdb 

Example output

#fsdb -F t col1:l two andthree:d
1	key1	42.0
2	key2	123.0
3	key1	90.2