My WordPress Blog
So, I just discovered the Unix tool bc. Given that I’m a Mac guy as much for the Unix as for anything else, this got me interested. bc is a mathematical programming language and interactive calculator. The latter is useful, sometimes I need a calculator, and for what I’m doing that instant, a terminal app…
I was all like, “I need to write a perl script to make these M3u playlists”… then reality hit me and was all “Dumbass. OS X is Unix. Use IO redirection and pipes”. This shell command creates a playlist from files in the current directory. ls | grep -v *.m3u | cat – > playlist.m3u…