Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-31-2006, 09:56 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
Command to find similar file names in a directory

I'm looking for a command to find similar file names in a directory. I have quite a large mp3 folder, and a fair number of duplicates. I have run a checker program that finds the same files by MD5 sums, but, I know there are still a whole lot more that aren't exactly the same, but are the same song. Any command or string of commands that will do this? preferably recursively, so I can put it in the r directory, and it will find all the similar in the sub directories too?
Old 01-31-2006, 10:20 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
Something like
maybe? Took me 30 seconds to find :}

Old 02-01-2006, 06:56 AM   #3
LQ Newbie
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I found that too, but I can't seem to get it to work. It says it has dependancies that I can't seem to find.

Those are the dependancies, and I think I found the numeric one, but not the other two. If I try to run it I get errors like this.
File "./", line 14, in ?
import stat, sys, os, glob, shutil, string, Numeric, mad, fnmatch, ogg.vorbis
ImportError: No module named mad

Which I interpert to mean it is missing some of the dependancies?
Old 02-01-2006, 07:18 AM   #4
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Well i assume it is missing python-mad ....

You need to say what distro you are using as each of those dependencies, has it's own dependencies i believe (dependency hell!) but if you use a distro with a package manager its much easier

The following packages for Python-pymad

Debian - (they're package site is down at the time of writing this)

Gentoo (atleast the link says it is, never used Gentoo) -

ubuntu (maybe same as deb) -

The following packages for python-pyvorbis:

Debian (same place as above -

Gentoo -

Alternatively there might be a package containing All the Libs/devels etc. that would work.

Good luck
Old 02-02-2006, 06:42 AM   #5
LQ Newbie
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry, I use Fedora 4. I searched the yum repository, but I may not have the correct repositories to find the python-mad.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change file names to uppercase in a directory konramesh Linux - General 4 06-16-2009 07:13 AM
Getting file names in a directory using C on linux. rajsun Programming 4 06-10-2005 01:47 AM
Find and special file names CritterZ Linux - Newbie 2 12-23-2004 10:49 PM
monitoring directory to get the modified file names appas Programming 1 09-06-2004 05:56 AM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 08:18 AM

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration