CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki