I have a file which has content that looks like this:
19.58 1925 Alpha 20.40 1924 Otter 13.66 1920 Gold
I am trying to sort it "column by column" to output the following:
13.40 1920 Alpha 19.58 1924 Gold 20.66 1925 Otter
I have tried various combinations of code, e.g.:
cat files | sort -t. -k1,1n | sort -t " " -k2,2n -k3,3r k4,4n
but this doesn't output the wanted result. How could I achieve the sorting that I mentioned?