Jump to content
Not connected, Your IP: 18.224.38.170
LazyLizard14

Sort folders / files

Recommended Posts

I in the process of sorting out the mess on my NAS where multiple family members stored their downloads on - more than 1000 files / folders in one folder. There are many duplicate files, tho not easy to identify. Like for example take foldernames of movies: "Movie1_720p", Movie1_1080p" etc.

Same with Backups of various computers, smartphones etc.

So it is obvious that I cannot use date or size as a criteria. Basically I look for a tool that allows highly customizeable search functions so it is able to show me all the folders in an exlorer-like style that have the first X characters in common. Then I can manually choose which to keep and what is garbage.

Any ideas?

Share this post


Link to post

I do not recall if the free trial will work or if you have to pay before it works for this, but CCleaner works wonders for this sort of thing.

https://www.piriform.com/ccleaner

 

Duplicate_Finder.jpg

 

Note that if you have loads of time, checking "Content" will look at the actual files themselves and hash them to see if there are any duplicates. But this is basically reading the entire content of the drive/partition/location specified. On a NAS this could take a very long time.


Debugging is at least twice as hard as writing the program in the first place.

So if you write your code as clever as you can possibly make it, then by definition you are not smart enough to debug it.

Share this post


Link to post

CCleaner is free, all features work without payment.


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

None of those standard tools does this.

Well in case somebody interested I post the shell command that did the trick:

find . - maxdepth 1 -type d -print0 | sort -z | uniq -zD -w 7 | tr '\0' '\n'

'-w 7' uses the first 7 characters (the first two are always './' )

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...