Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created March 30, 2009 09:28
Show Gist options
  • Save miyagawa/87710 to your computer and use it in GitHub Desktop.
Save miyagawa/87710 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
# $f is UTF-8 (on Mac OS X)
for my $f (<*.mp3>) {
(my $title = $f) =~ s/\.mp3//;
$title =~ s/^\d+\. *//;
# -e 2 tells mp3info2 to decode @ARGV using LANG
system 'mp3info2', '-e', '2', '-t', $title, $f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment