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

2
votes
3answers
43 views

create a .tar file of all latest files in the directories

I am in a directory A. This has a lot of sub directories B, C, D. Each sub directories will have a list of files. I need to create a .tar file of all the latest file in each subdirectory. Example: ...
0
votes
2answers
41 views

How to sort the files in download folder of Ubuntu by date of download?

how can I sort the files in my download folder in the order of the date of download? My OS is Ubuntu 14.10 & I am using Nautilus - Files 3.10.1
1
vote
1answer
26 views

Efficiently finding the first file (in the lexicographical sense) among multiple directories

I have hundreds of folders and each folder contains thousands of files. I want to identify the "first" file among all files of all folders, "first" being defined by the lexicographical order of the ...
0
votes
2answers
56 views

Sorting two columns with sort and uniq

I have a file that needs sorting in a specific way but I can't figure out how to do it. I've tried the following command but it doesn't give me what I want: sort -t" " -k1,1 Original_File | uniq ...
1
vote
0answers
24 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 ...
3
votes
1answer
68 views

Sort millions of text files in a folder using unix sort

I am trying to sort a lot of files (millions ie approx 2.5m) .txt files in a folder called NZParsed. All the files in the folder are named like 1.txt 2.txt and so on till 25xxxxx.txt After running ...
3
votes
5answers
3k 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 ...
1
vote
1answer
71 views

help understand diff between: sort < file.txt VS file.txt | sort

so im learning Ubuntu (for the first time) and am reading trough Ubuntu server book chapter 14 says filename.txt | sort will give me an output with the content of the file, but sorted HOWEVER it ...
0
votes
1answer
308 views

How to change the sort order of a specific folder in Nautilus

I want all the files in my Downloads folder to be sorted by modification date, but all other folders, and files in other partitions to be sorted by name. How can I do that? Edit: I want Nautilus to ...
0
votes
1answer
158 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 ...
1
vote
2answers
461 views

Problem IN piping the output of one command to other

I want to recursively sort all the file in the present directly. I tried ls -lh -R |sort >> output.txt. But i think multi-threading problem is creating a problem, before complete output of ls ...
0
votes
3answers
583 views

Filter .txt file on descending order of created date

I had created a .txt file but now I forgot where I save it and also the file name of it. So my question is: is there any method to filter out .txt files on descending order of created date? I'm ...
1
vote
2answers
399 views

Sort lines in text file with specific separator in Linux

I need to sort the lines of a text file (without any extension) where the lines are separated by %. When using sort command, those %s are also getting sorted out which I do not want. How to sort the ...
4
votes
1answer
118 views

How can I make Nautilus sorting ignore the word “The” or “A” at the beginning of file and folder names?

I have a rather large library of media and it gets annoying looking for something when I forget that the "official" name of the movie, artist, song, etc begins with the words "The" or "A". So, for ...
1
vote
2answers
249 views

How to take the first n files from a directory with a letter in alphabetical order to another directory

I need to take the first 3 files from a directory starting with letter b in alphabetical order to another directory. I've come up with this command: find ...
1
vote
1answer
378 views

is there a file manager which you can sort files manually with, 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., ...
3
votes
0answers
128 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: ...
1
vote
2answers
660 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 ...
3
votes
1answer
231 views

Can I sort files in Dolphin into date order on Kubuntu 12.04.01?

Can I sort files in Dolphin into date order on Kubuntu 12.04.01? It was suggested (can't remember where) that Nepomuk would do this. If this is so, how do I enable Nepomuk. The application appears to ...
1
vote
1answer
1k 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 ...
4
votes
2answers
543 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 ...
2
votes
1answer
182 views

How to put Banshee in manual sort mode

i'm making a playlist for my friend's birthday.I need to sort the songs.
4
votes
3answers
5k views

How do I sort account names alphabetically in Thunderbird?

I just upgraded to Ubuntu 12.04 and Thunderbird 13.0.1. I had 2 accounts earlier in Thunderbird: a..@i..net s..@c..com I also had another account on SeaMonkey: a..@i..com which I imported into ...
2
votes
2answers
5k 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
0answers
209 views

Why does sort perform much faster on my Slackware server? [closed]

I have a powerful machine with 32GB RAM, 10TB hard disk storage, and an Intel Core i7 3.3Ghz processor. We installed Ubuntu Server 11.10 and tried some scripts: the most impressive was a sort file.txt ...
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 ...
1
vote
3answers
324 views

Wiping my hard disks, how do I pull out and sort all the music/videos/pictures?

Looking to raid my hard disks but need all the important stuff out first, have not been very tidy with my file management, is there a program that will scan my computer and pull out all the video, ...
2
votes
0answers
183 views

Move downloaded files based on criteria

After downloading tv shows and movies I would like them to be automatically moved to two separate folders (named "tv shows" and "Movies"). I know there are a lot of programs that you can do this with ...
3
votes
1answer
369 views

How to make some folders appear on the top in Nautilus?

I'd like to have some folders on top e.g. on Windows I had _videos folder which would always appear on top. How do I achieve the same effect in case of Nautilus? It's rarely the case I'd need similar ...
5
votes
3answers
616 views

Music player that can sort or filter by number of tracks (per artist)

I'm looking for a music player/music library manager that allows me to see a list of artists sorted by the number of tracks I have for that artist. Winamp does this, but I haven't found any ...
2
votes
0answers
289 views

How do I disable file sorting on usb drives? [closed]

Are there any file managers that allow unsorted folders on usb drives? I can select manual sort on my hard drives fine, but when I connect a usb mass storage device the option for manual sort is gone ...
6
votes
1answer
684 views

How can I make a script to place files older than each day before into their own folder?

I'm running an unnecessarily complex script which looks similar to this command: find /home/user/videos/*.avi -mtime +0 -exec mv -f {} "/home/nb/videos/1 day old" \; And then I run the same ...
0
votes
1answer
753 views

How to sort files by file extensions through the command line?

This is my question: How to sort files by file extensions through the command line?
9
votes
7answers
3k 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 ...
2
votes
2answers
431 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 ...
2
votes
0answers
170 views

Can I/How do I sort titles by resolution in VLC, mplayer, or similar app? [closed]

Can I/How do I sort titles by resolution in VLC, mplayer, or similar app, i.e., sort videos by their pixel count?, e.g., a 1920x1080 vid followed by a 1280x720 vid, etc, ascending or descending.
5
votes
2answers
585 views

Sort albums by date in Banshee

Banshee has an option - sort albums by release date, not by name, but turning it on do nothing. All tags are filled correctly. Is at a bug or I miss something?
6
votes
3answers
3k 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.
0
votes
2answers
413 views

How do I force a folder sort for my downloaded music on Rhythmbox

When I import music from an external source, it sorts it into the nice and organized folders by artist - album, but when I import music from Downloads, it just references the file in Downloads and ...
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"... ...