Skip to content
Advertisement

Sorting of data in descending order

Allow me to clarify my query:

I have a database with thousand of character strings, followed by some values (based on scoring matrix)

JavaScript

There are equal values also present. I am trying to sort the data in descending order using:

JavaScript

But the data is still disarranged. Also tried by adding -k argument.

Is it possible that i could get the following result:

JavaScript

and so on.

I am new to Linux. Any help will be appreciated.

Advertisement

Answer

JavaScript

This will number sort 2nd field in reverse order and print

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement