Run soft command on multiple columns
I have been searching for hours and have not found an answer that works for me. I have a three column file that I want to sort each column separately. My code right now is:
sort -t $'\t' -k1,1n -k2,2n -k3,3n stuff > stuff.sort
I have tried with and without the K commands and no difference. I am trying to sort the following:
red beer owl
green vodka cat
blue whisky emu
Is this even possible to sort each column independently?
Thank you
|