title: Extract specific columns from delimited file using Awk
body: <p>Sorry if this is too basic. I have a csv file where the columns have a header row  (v1, v2, etc.). I understand that to extract columns 1 and 2, I have to do: <code>awk -F "," '{print $1 "," $2}' infile.csv &gt; outfile.csv</code>. But what if I have to extract, say, columns 1 to 10, 20 to 25, and 30, 33? As an addendum, is there any way to extract directly with the header names rather than with column numbers?</p>