Issue
This below command prints 9-12 column of the csv files perfectly
grep -i introd *.csv | awk 'BEGIN { first = 9; last = 12 }{ for (i = first; i < last; i++) {printf("%s ", $i) } print $last }
but I also want to print the column1, column3 and column 30-35.
Solution
grep -i introd *.csv | awk 'BEGIN { first = 9; last = 12 }{ print $1, $3 for (i = first; i < last; i++) {printf("%s ", $i) } print $last
Answered By - user11086556