LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Is there an app that would sort all this (https://www.linuxquestions.org/questions/linux-software-2/is-there-an-app-that-would-sort-all-this-612828/)

geeyathink 01-11-2008 06:27 AM

Is there an app that would sort all this
 
Anyone know of an app that does this:

I would like to save/drag my assorted files of all types (.txt, pdf, html,.doc,.sh,.iso, .mpg etc...) into a single folder and then have them be automatically sorted by first content and then extension.
Any thing that could be grep'd or the equivilent like the txt, pdf, html, doc, is sorted against word lists and moved to the most appropriate new folder
like: Computer/Networking, Entertainment, Medical, Gardening, Travel, Antiques etc.. and the remaining just moved to thier respective sub-folders by extension like the iso and scripts what have you.

I'm not the best googler in the world but I have been trying.So far I have came across things that kinda sorta do stuff like this but I dont know if they really would do what I am after, like using a web search engine or the sort utility.

Or is this the type of thing a person has to build themselves from scratch?

Thanks

salasi 01-11-2008 04:34 PM

If I've understood your requirements, this is actually not too hard to do yourself, up to a point.

If you are happy going down a list, with something like

if the text "wireless" appears in the file, move to ~/networking

then that is not too hard. Trouble is, there will always be some files with "wireless" them that aren't primarily about networking, and you may find the trouble associated with that to be more than it is worth.

And the files that aren't plain text files....Now that's a bit of a problem, too. You could deal withh OpenOffice (and similar) files, but it would be a bit of a pain as you have to unzip them and walk down the directory structure. Not impossible, but maybe more trouble than its worth. And jpegs and mpegs and the like: there isn't much worthwhile (text) content to sort on.

Again, maybe you are happy if this utility sorts 80% of your files and you deal with the remainder manually, I don't know. I suspect it will always consume more time in writing than it ever saves in running but maybe that's not the point.

geeyathink 01-12-2008 06:15 AM

Thanks for the reply salasi

It just seemed like something neat to have, if I could find it already available. I dont have the skill to do it myself yet. Maybe some day.

Later


All times are GMT -5. The time now is 04:59 AM.