r/ScriptSwap • • 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

13 comments sorted by

View all comments

Show parent comment

2

u/terremoto Nov 03 '12

Edited for formatting. I can't seem to get a pound symbol at the beginning of a line,

Indent anything you want to be preserved, a la code, with four spaces. Lines beginning with # are considered headers in markdown.