I have a ton of mp3 files that I'm currently sorting the id3 tags for.
Each filename starts with the tracknumber followed by an underscore.
e.g. 01_SONG_NAME_-_ARTIST_NAME_-_ALBUM_NAME.mp3
Because i have a unique separator between the SONG, ALBUM and BAND name '_-_'
i can use my audio tag software to populate the ID3 tag fields appropriately.
However the track number is separated from the band name by an underscore and the
software isn't flexible enough to tell the difference.
So i need a shell script that will loop through a directory and
strip the first three characters from each filename.
Can this be easily done in shell?
If not i can do it in python but id rather not.
Cheers,
Oliver.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!