I have the following file
CHO 1
4096
26 20 0 0 0 0 0 0 0 0
0 0 0 0 0 3 5 15 8 14
9 7 13 10 12 9 5 3 3 2
2 0 0 0 0 0 0 1 1 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 1 0 0 0 0 0
6 8 5 5 7 13 13 33 23 29
44 51 56 42 39 31 21 24 18 18
18 30 44 43 51 67 102 110 130 130
100 96 87 49 25 16 4 1 1 0
0 0 0 0 0 0
What I want to do is put all entries after 4096
in one column. A desired output is the following
1 26
2 20
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
...
4096 0
I don't have a clue on how to do it using awk. I tried for instance to put them in one line using
awk -F'\n' '{if(NR == 1) {printf $0} else {printf $0}}' file
but I don't know how to get them to one column. Let alone the fact that the first entries are not as expected.
CHO 1409626 20 0 0 0 0 0 0 0 0 0 0 0 0 0 3 5
Any idea on how to get the desired two column output? Any help is more than welcome!!!