DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Set Id3 Track Number From A Filename

10.18.2008
| 3338 views |
  • submit to reddit
        sets the id3 track number from the first 2 digits of a filename

ls | perl -ne '$a=$_;chomp($a);$a=~/^(\d+)/; `id3tag -2 -t $1 \"$a\"`'