Questions tagged [sort]
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.
12
questions
13
votes
4
answers
5k
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"... ...
12
votes
6
answers
72k
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 ...
12
votes
3
answers
16k
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.
11
votes
1
answer
5k
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 ...
8
votes
5
answers
3k
views
Searching through ODT documents without opening them?
Let's say I have 2000 .ODT files. Their names are random numbers. How do I go about searching for, let's say, "pricing list"? How do I find the document I need without opening all of them one by one ...
4
votes
2
answers
21k
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 ...
23
votes
8
answers
19k
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 ...
15
votes
2
answers
5k
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
a++-...
6
votes
1
answer
752
views
How to set memory usage sort in top command as default?
I want to sort the memory usage in top command as default. So that i do not have to sort in every i run top command.
How to do that?
Thanks in advance....
3
votes
0
answers
2k
views
How to sort files files alphabetically rather than numerically in file manager
With "ls" the following files are sorted as I want as:
026 046 048 08f 28f 46a
but in file manager (I have tried nautilus, nemo and pcmanfm) they are sorted as:
08f 026 28f 046 46a 048
...
2
votes
1
answer
2k
views
How to find duplicate lines in very large (65GB) text files?
I have 10 text files, that contain 65 characters of hex value in each line. Each text files is 6.5GB in size (having 99999999 lines)
i.e.file1-6.5GB, file2-6.5GB, file3-6.5GB, file4-6.5GB, ... file10-...
0
votes
1
answer
115
views
How am I misusing sort?
I have a very small file bugtest.csv with years in the seventh column. Its contents read:
1000,101,1,2,"VEN","Venezuela, Bolivarian Republic of",1967,22,4,99,0,0,1967-12-07,"R/...