Have a text file containing 4 columns, the 4th column is sorted numerically in descending order. The 2nd column is alpha text. Been able to get the 4th column to sort in descending order. The 2nd column sorts correctly but it's also in reverse. Would like to be able to keep the 4th column sort numerically descending while the 2nd column is sorted a-z, not z-a. This is what I have and can't seem to get it to work because everything is reversed.
I seem to get the NUMERICAL REVERSE sort of k4 only if it is the first key to sort by. Both for sort (GNU coreutils) 5.3.0-20040812-FreeBSD and sort (GNU coreutils) 8.25 (linux) ,
EDIT: Yes, vgersh99 has got it! -k2 will use field 2 till end-of-line as a key....