Thread
:
Help ! How can I remove duplicate music files ?
View Single Post
Captwheeto
2010-11-19 , 13:43
Posts: 302 | Thanked: 193 times | Joined on Oct 2008 @ England
#
8
find . -type f -print0|xargs -0 md5sum|sort|perl -ne 'chomp;$ph=$h;($h,$f)=split(/\s+/,$_,2);print "$f"."\x00" if ($h eq $ph)'|xargs -0 rm -v --
That should work. Found it here
http://www.commandlinefu.com/command...directory-tree
Quote & Reply
|
Captwheeto
View Public Profile
Send a private message to Captwheeto
Find all posts by Captwheeto