How can I organize a MASSIVE messy folder?

Astralogic

Gawd
Joined
Apr 24, 2012
Messages
581
Hi, I have a gargantuan wallpaper folder that I download wallpaper packs into every day. I've done this for years and that folder is... imposing to say the least.

The problem is it's not sorted. The packs inside it are either a folder or an archive. I would like a program (PLEASE tell me one exists) that will for example move all folders and archives in the root of this folder to a new folder simply based on a keyword found within the title of said folder and archive, eg if it has "nature" in its file name put it in a folder called nature etc.

This would be an easy way to sort out that hell hole.

Please tell me a program like exists! Or does anyone know of another way to sort it?

Thanks
 
You could do something like this. Not pretty, but it works.

Code:
pi@brewpi ~/pictures $ ls
kitty1.jpg  kitty2.jpg  kitty3.jpg  nature1.jpg  nature2.jpg

pi@brewpi ~/pictures $ mkdir nature; for i in `ls | grep nature`;do mv $i nature/; done
mv: cannot move `nature' to a subdirectory of itself, `nature/nature'

pi@brewpi ~/pictures $ ls
kitty1.jpg  kitty2.jpg  kitty3.jpg  nature

pi@brewpi ~/pictures $ cd nature

pi@brewpi ~/pictures/nature $ ls
nature1.jpg  nature2.jpg
 
OK, thanks for that, I assume I have to do this in a command window after navigating to my wallpaper folder?

Also what do I change to create new category folders. I don't just have "nature" wallpapers there are several category folders I want to create, mixed, dreamy, anime, etc
 
That's a Unix command shell. DOS / Windows is a little different.

You want something like

md nature
for %f /f in ('dir * /l /b | find "nature"') do move "%f" nature

Note that the double quotes are necessary to cope with spaces in filenames.

For more simple sorting you could replace the second line with
move *nature* Nature

In both cases just change 'nature' to whatever you want your category to be.

It's a good idea to not have the folder name identical to the search term, so you might want to use Natural instead of Nature, for instance.
 
I know I'm late to the party but I'd recommend this

You can do advanced search/filtering (grepping) to find certain files and move them to a new location.
 
Back
Top