Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'even shorter' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
even shorter
Authored by: SOX on Sep 17, '04 01:54:22PM
perl -nwaF"\t" -0x00d -e '$x = join "\t",@F[0..3]; print $x,"\n" if $h{$x}++ ' name_of_file

anyone have a shorter one?

[ Reply to This | # ]

Perhaps even longer??
Authored by: koncept on Sep 18, '04 01:17:44AM

This suggestion would be a lot longer to process, but any chance of posting a script that does a binary compare on each file located in a user's library.xml file and seek out duplicate audio files which may have different names but still be the same file?

There seems to be a [b]File::Compare[/b] on cpan which may do the trick.



[ Reply to This | # ]
try iEatBrainz for cleaning things up
Authored by: babbage on Oct 13, '04 11:09:48PM

The best application I've seen for this is iEatBrainz from MusicBrainz.org.

IEB analyses the acoustic fingerprint of each tracck in an attempt to look up missing track information, which seems like the best approach possible. This is a nice way to cope with the fact that the same track can exist at different bitrates, can have different sizes & times, and the ID3 tag data can be totally incorrect and just shouldn't be trusted.

It's far from perfect. Most obviously, IEB is really slow, especially on large iTunes libraries. Further, a lot of the data it provides can be questionable & needs to be double-checked, and -- most important for this topic -- it doesn't have a mechanism for de-duping.

Still, it's the only software of its kind that I know of, and it works well enough to be a huge time saver when trying to clean up your iTunes library. This should be able to get things clean enough that other approaches, such as the Perl script in this discussion or the Applescript here, can be effective.

---
--
DO NOT LEAVE IT IS NOT REAL

[ Reply to This | # ]