Hi, I need somebody's help with sorting data with awk.
I've got a file:
10 aaa 4584
12 bbb 6138
20 ccc 4417
21 ddd 7796
10 eee 7484
12 fff 9503
20 ggg 7034
21 hhh 9652
10 iii 4894
12 jjj 6011
20 kkk 8504
21 lll 4691
10 mmm 2487
12 nnn 3078
20 ooo 7903
21 ppp 6722
I need to to sort this data to get output like this:
10 aaa eee iii mmm
12 bbb fff jjj nnn
20 ccc ggg kkk ooo
21 ddd hhh lll ppp