I'm going nuts fighting with the "sort" command. I can get it to work for a single sort, but having it do a double one seems to be giving me trouble.
I have the following data:
Code: Select all
101 A
101 B
101 C
102 A
102 B
102 C
103 A
103 B
103 C
Code: Select all
101 A
102 A
103 A
101 B
102 B
103 B
101 C
102 C
103 C
Code: Select all
sort -k2,2 -k1n ~/[filename].csv > [sortedfile].csv