r/ScriptSwap • u/molten • Nov 03 '12
[Request] duplicate file deleter
I have somewhere in the realm of 40k files that have been duplicated into their folders and others. I was hoping for some advice before I rage quit (sledge hammer) on my hard drive.
for clarity's sake, they're all music files, under one directory. They've been pushed and shoved by Rhythmbox, so i'd prefer a bash solution if at all possible.
8
Upvotes
View all comments
Show parent comment
2
u/terremoto Nov 03 '12
Why do you think that? Mine only uses the sizes to filter out files, it still runs the MD5 sum to verify whether or not the files are identical. Files of different sizes are obviously not identical, no point in needless caluclating MD5 sums on everything. For 50k files as the author mentions, that'd take a lot more time.