Doing things the easy way

A couple months back I posted a C++ program for reading / writing mp3 files given their tags. This was of course windows so its always necessary to over do everything because that’s how windows works.

I did the whole process on Linux in like 1 line of bash.

I installed the MP3::Tag lib from cpan, then borrowed the mp3info2 app to make this work:

 

evil1@evil-foo:~/Music$ for lol in `find File*`; do  mv $lol ./`mp3info2 $lol | sed -n 4p | tr -d ‘ ‘`-`mp3info2 $lol | sed -n 2p| tr -d ‘ ‘`.mp3; done

How fucking easy is that? I wish I wasn’t always tied down to windows.

 

Children of the 80’s / early 90’s will get this pic. Everyone else is on their own!

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.