I have a space delimited input text file. I would like to delete columns where the column header is size using sed or awk.
Input File:
id quantity colour
Use cut:
$ cut -d' ' -f1-4,6,7,9,10 < in.txt id quantity colour shape colour shape colour shape 1 10 blue square red triangle pink circle 2 12 yellow pentagon orange rectangle purple oval