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.
23
questions with no upvoted or accepted answers
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
...
3
votes
0
answers
437
views
How to make a new-defined alphabetic sort order in a locale work?
I'm working on a new Latin-based script for Persian. So I've used such lines in GB locale file, to modify the sort order:
First of all, I've introduced the new characters in such way:
collating-...
2
votes
1
answer
900
views
How can I make the file browser sort in ASCII order?
The so called "intelligent sorting" does not make any sense to me.
It will put 1z in front of 0005abz. I would like to have sorting order like it used to be:
00056
00056aaa
004abc
03abc
2abc
and not
...
1
vote
0
answers
94
views
Case insensitive sort in Nemo
So I'm trying to get so special characters are on top followed by numbers, then letters case insensitive.
I've added export LC_ALL=C to my .profile, but the result is case sensitive.
Is there a better ...
1
vote
0
answers
40
views
Music Library Sorting
I've tried a few different music players and they all seem to lack the one feature I want. It's possible they all have it and I just don't know how to use it, too. I've got a collection that's only ...
1
vote
2
answers
130
views
extract the oldest values from a master file per each code
I need help writing a script that would extract from a master file the oldest records and save them in a separate file. The file contains hundreds of ISIN codes and additional data. For each, there ...
1
vote
1
answer
316
views
How can I sort fonts of different languages?
Is it possible to sort fonts of different languages instead of the alphabetical order which is the default sorting order?
1
vote
1
answer
97
views
SORT: Why is it different in open/save window then elsewhere?
The sort order in my Xubuntu file manager (Thunar) is the way I want it, with types of characters in the following order:
non alphanumeric (principally: underscore, hyphen, dot)
numerics
...
1
vote
0
answers
49
views
After renaming a file the Ubuntu 14.04 program "Files" sorts alphanumerically and displays location of new/corrected file name. Can that be disabled?
I looked in Ubuntu 14.04 and I could not find a option to disable a awkward feature that made extra work for me.
After renaming a file then the program "Files, version 3.10.1" reorganizes ...
1
vote
1
answer
2k
views
Is there a file manager in which you can sort files manually, as in Windows? or can I manually sort my files from the terminal?
In Nautilus you can sort files manually only in the icon view (and the arrangement is a mess). My question is: is there a file manager which you can sort files manually with, as in Windows? i.e., ...
1
vote
0
answers
3k
views
LibreOffice latest version color sort
I would like to arrange my cells according to color. I have a mix data cell with different colors in between, and would like to arrange them so all the same colors are with each other...
Is it ...
0
votes
0
answers
176
views
Tail in combination with sort
I use tail in a variable to echo contents of multiple files in a folder.
VAR="$(tail -n +1 DIR/*/file)"
This outputs all the files contents with the needed filename on top like
==> /...
0
votes
0
answers
21
views
Sort wav files based on channel #
Is there a way to sort wav files based on channel number in a directory?
For example, if I click Channel # for sorting it would. I'm surprised Ubuntu does not have this function.
0
votes
0
answers
265
views
How to correctly sort by numbers when having numbers higher than 9
I have a simple question.
When I have a list of numbers and use sort, I get the following result:
10
11
12
7
8
9
Because 1 is lower than 7, it sorts 10 lower than 7. How can I make it so that it ...
0
votes
0
answers
314
views
du /home | sort -nr +0 -1 | head –10
I am a little confused with this command. Can someone please explain what the output of this command is? I see it in my terminal, but I do not understand what it is showing me.
0
votes
2
answers
148
views
Getting the biggest partition on server
I'm trying to get the biggest partition out of "df -h" into a variable without success.
Filesystem Size Used Avail Use% Mounted on
udev 462M 0 462M 0% /dev
tmpfs ...
0
votes
0
answers
2k
views
How to sort the file in such a way that join command accepts the sorted file?
I sorted two files and used join to merge the columns of the files according to row names.
Commands I used
sort file 1 > file1_sort
sort file 2 > file2_sort
join -o auto -e '0' -...
0
votes
2
answers
293
views
How to sort file after text-me-not/ in Unix and ignore case?
I have this data and want to sort it alphabetically after the string test-me-not/ and ignore case.
hello-yourself/www/test-me-not/watermelon-green
hello-yourself/www/test-me-not/orange-orange
hello-...
0
votes
1
answer
379
views
Sorting Pictures by name-column "record date" with nautilus
i use Ubuntu 12.04 LTS a few days now and i like to shot photos :-). So far, i load all my pictures on my ubuntu system (approximatly 15000). But when i want to sort them in their folders by the ...
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/...
-1
votes
2
answers
101
views
how to sort and clean up a text file?
I have massive text file with stupid data in it like "BR" (the BR had greater than/less than signs on either side of it, i have already removed the BR from the file, it just need it sorted ...
-2
votes
2
answers
137
views
Sort items in a folder according to given order
Suppose I have a file a.txt in which every line contains the line number (starting from 1) followed by a space and then followed by a name (the name of an item in a folder like e.g - something.mkv). I ...
-6
votes
4
answers
199
views
Wrong sorting a text file
I have this simple text file and want to sort all lines by the response_time column:
1 console-2017_09_17.log:2017-09-17 00:04:02,507:INFO :pool-8982-thread-30:r.a.u.j.PerfRequestInterceptor - method=...