howtos:how_to_find_the_order_of_a_column_in_a_csv_file
How to find the order of a column in a CSV file
head -1 merged.csv | sed 's/"//g; s/,/ /g' | awk '{ for(i=1; i<=NF; i++) if($i == "TOBS") print i }'
howtos/how_to_find_the_order_of_a_column_in_a_csv_file.txt · Last modified: by hcho