Dear users,
1 2
2 3
1 2
3 4
5 4
1 2
3 4
5 2
2 7
How can I make subsets of colomns in awk. Like this: if column 1 equals 1 then output of column 2 should be printed in a new column and if column1 equals 2 columns 2 should be printed in another new column too and so on.
Thanks in advance
1 2
2 3
1 2
3 4
5 4
1 2
3 4
5 2
2 7
How can I make subsets of colomns in awk. Like this: if column 1 equals 1 then output of column 2 should be printed in a new column and if column1 equals 2 columns 2 should be printed in another new column too and so on.
Thanks in advance