I have a tab delimited file which have 2 columns as:
new.txt
1.01 yes
2.00 no
0.93 no
1.2223 yes
1.7211 no
I want to modify the contents of it as if there are two categories as:
new_categorized.txt
yes no
1.01 2.00
1.2223 0.93
1.7211
I have found a similar question with an answer in R (here) ,however I need to do it with bash or awk.. I would appreciate your help.