I want to select several columns in a file and execute some command on it. so my script is
awk '{print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$19}' test.txt > outpot.txt
but this will print it in another file and I tried to do it
awk '{print $1,$2,$3,$4,$5,$6,$7,$9,$10,$11,$12,$13,$14,$15,$16}' test.txt | next commands
(These commands work fine! I made a mistake and I donβt know how to remove this question)
Is it possible to make this command shorter so that instead of writing all the columns, just write $1-7 && $9-15 && $19 (but this is not very important, I just wondered if this is possible). The main thing is to be able to select columns