Created
March 30, 2009 09:28
-
-
Save miyagawa/87710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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