I have a this big matrix of 50 rows and 1.5M columns. From these 1.5M columns, the first two are my headers.
I am trying to divide my data by columns into small pieces. So for example each small set will be 50 lines and 100 columns. But each small data must have the first two columns mentioned above as the headers.
I tried
awk '{print $1"\t"$2"\t"}' test | cut -f 3-10
awk '{print $1"\t"$2"\t"}' test | cut -f 11-20
...
or
cut -f 1-2 | cut -f 3-10 test
cut -f 1-2 | cut -f 11-20 test
...
but none of the above is working.
Is there an efficient way of doing this?