I have a csv file with hundreds of columns and 80 rows. I need to remove the first 13 columns from the file. I have tried using:
cut -d, -f1-13 --complement input.csv > output.csv
But the issue is one of the first columns contains quoted text including commas and cut can't deal with this format. Example input:
HeaderA, HeaderB, HeaderC, HeaderD, HeaderE, HeaderF, HeaderG, HeaderH A, "B, B", C, "D, D, D, D", E, F, G, H A, "B, B", C, "D, D, D, D", E, F, G, H A, "B, B", C, "D, D, D, D", E, F, G, H
Desired output:
HeaderE, HeaderF, HeaderG, HeaderH E, F, G, H E, F, G, H E, F, G, H
In the example I am working with a smaller number of columns in similar conditions. Ideally the solution should be extendable to any number of columns and rows (13 columns and 80 rows in my case). I have tried looking for solutions with awk, but often they include printing all columns except those to remove and this isn't a practical solution due to the sheer number of columns.