Set Id3 Track Number From A Filename
Join the DZone community and get the full member experience.Join For Free
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\"`'
Opinions expressed by DZone contributors are their own.