Comments are most welcome,use MP3::Info; opendir(DIR, ".") or die "can't opendir $some_dir: $!"; @files = grep { /mp3/ } readdir(DIR); closedir DIR; for (@files) { my $tag = get_mp3tag($_) or print "Could not access tag on $_\n" and next; my $newname = $tag->{"ARTIST"} . " - " . $tag->{"TITLE"} . ".mp3"; `move "$_" "$newname"`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Script to rename mp3s based on id3 tags
by jeffa (Bishop) on Jul 21, 2003 at 22:10 UTC | |
|
Re: Script to rename mp3s based on id3 tags
by barbie (Deacon) on Jul 21, 2003 at 23:54 UTC |