How to sort in reverse order. To sort in reverse order pass the -r option to sort . This will sort in reverse order ...
The sort command is a command line utility for sorting lines of text files. It supports sorting alphabetically, in reverse order, by number, by month ...
sort -nrk 2,2. does the trick. n for numeric sorting, r for reverse order and k 2,2 for the second column.
To reverse a file, use tac : tac filename. sort -r doesn't do what you're after because it doesn't reverse, it sorts in reverse order; that's why you ...
I need to sort the particular column only in reverse order how i can give it.. if i give the -r option the whole file is getting sorted in reverse ord ...
1. tac command is the reverse of cat. · 2. This option uses a combination of commands to reverse the file order. · nl commands numbers the file ...
I a file with log entries... I want to sort it so that the last line in the file is first and the first line is last.. eg. Sample file 1 h a f 8 6 Aft | The UNIX and Linux Forums.
The following command will sort file size in reverse order:
To sort case-insensitively and in reverse order, use: sort -fr filename. As with many Unix commands, you can redirect the output to a new file:
11 ways to list and sort files on Linux