Placed in a application-Path an executed by a Link-to-Programm-Icon the script searches for duplicates of files. This check depends on MD5, not on file-name.
one.sh script searches all folders of an given path an deletes (if you wish) all duplicates and resulting empty folders. You can define a file-extension or search for *.* and so on in KDE-Dialog.
Everthing happens due to using this script is not under my responsibility.
Don't forget to chmod +x
Its useful to test it in a dir with copies of your files.
Example: You have a folder-tree with many, many songs. The song lalala.mp3 is found in the folder of an album, and in a folder of an artist. The same song, maybe called singer-lalala.mp3 is found in a folder of a compilation too.
Your - hm... Amarok - shows it three times - it the song needs his space 3 time. Also it is stored 3 time's in Amaroks Database. If you search and add "all of that singer" to a playlist, it is added 3 times - right!?
If you start keepjustone.sh in your music-folder it searchs for duplicate files (even with other names) by using md5 and delete the copies by keeping the first "original" file.
How it works:
1. The script asks for an extension and a path.
2. It builds a file with the path-information of matching files.
3. It generates a list with path and name of all multiple files.
4. It generates a 2nd list with the duplicates only.
5. It deletes all files of the 2nd list.
When you start this script, it builds multiple text-files in its working-Direktory. When you exit the script, this files will be deleted. Just this Helpfile stays.
It is possible to edit the listings with any editor during runtime of this script - just to check - or to change the deleting procedure.
What's New in This Release:
· Reduced Dialog-Windows and add a readme.