Sort is a command-line program that allows standard input or specified text files to be sorted in various ways such as numerically or alphabetically, and then the result can be displayed in the terminal or sent to file.

learn more… | top users | synonyms

7
votes
4answers
2k views

Nautilus sorts the Name-column “mysteriously”. How can I change the collating sequence?

What I describe here is not about a problem with my Nautilus. (it is the default behavour) I understand why Nautilus sorts the Name-column (ascending) so that "6 cats" occuring before "10 dogs"... ...
4
votes
5answers
9k views

Identify duplicate lines in a file without deleting them?

I have my references as a text file with a long list of entries and each has two (or more) fields. The first column is the reference's url; the second column is the title which may vary a bit ...
6
votes
3answers
5k views

Can I view my files sorted by date?

Can I view my files sorted by date? I want to see my files sorted by date, I mean the first one the newest. I didn't find this option. Thanks in advance.
2
votes
2answers
498 views

Change the Sort order of Devices in Nautilus

I have Three Windows drive, my nautilus shows devices in following order I want it to be sorted like windows 7 does C drive D drive E Drive My Massport 13 GB FS Future attached removable ...
9
votes
8answers
5k views

How do I sort by human readable sizes numerically?

for example I have command that shows how much space folder takes du folder | sort -n it works great, however I would like to have human readable form du -h folder however if I do that than I ...
5
votes
1answer
1k views

How do I force folder view sort order to not ignore special characters?

I have many folders in my home directory that have names that begin with special characters such as _OLD_500GB_HD or !FolderIWantToSeeAtTheTop, but for some reason these folders are sorted according ...
13
votes
2answers
695 views

Wrong behavior of sort command?

I tried to sort the content of a file in Ubuntu desktop 14.04 (Trusty Tahr). In my case, the expected result should be same as original content, but the actual result is not. Why? # cat test.txt ...
2
votes
2answers
8k views

How to sort lines in a text file from the terminal?

I have to sort the GPA in a file for my class lab. The teacher uses putty, for those of us that chose to use Ubuntu in the class, we have no idea how to do the command for ascending sort and ...
1
vote
2answers
853 views

How to automatically sort files out?

I have many files in my external harddrive, so I want to automatically tell the computer to sort all my files into folders, by their size, extension, name and other variables. Is there any program ...