{"id":181,"date":"2012-07-05T09:05:15","date_gmt":"2012-07-05T09:05:15","guid":{"rendered":"http:\/\/www.gironsec.com\/blog\/?p=181"},"modified":"2012-07-05T09:05:15","modified_gmt":"2012-07-05T09:05:15","slug":"doing-things-the-easy-way","status":"publish","type":"post","link":"https:\/\/www.gironsec.com\/blog\/2012\/07\/doing-things-the-easy-way\/","title":{"rendered":"Doing things the easy way"},"content":{"rendered":"<p>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&#8217;s how windows works.<\/p>\n<p>I did the whole process on Linux in like 1 line of bash.<\/p>\n<p>I installed the MP3::Tag lib from cpan, then borrowed the mp3info2 app to make this work:<\/p>\n<p>&nbsp;<\/p>\n<p>evil1@evil-foo:~\/Music$ for lol in `find File*`; do\u00a0 mv $lol .\/`mp3info2 $lol | sed -n 4p | tr -d &#8216; &#8216;`-`mp3info2 $lol | sed -n 2p| tr -d &#8216; &#8216;`.mp3; done<\/p>\n<p>How fucking easy is that? I wish I wasn&#8217;t always tied down to windows.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2012\/07\/1301106098179.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-182\" title=\"1301106098179\" src=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2012\/07\/1301106098179.png\" alt=\"\" width=\"693\" height=\"601\" srcset=\"https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2012\/07\/1301106098179.png 693w, https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2012\/07\/1301106098179-300x260.png 300w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/a><\/p>\n<p>Children of the 80&#8217;s \/ early 90&#8217;s will get this pic. Everyone else is on their own!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s how windows works. I did the whole process on Linux in like 1 line of bash. I installed the MP3::Tag lib from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts\/181"}],"collection":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":1,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts\/181\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}