Convert Easily From PLS to CMus Playlist

I did more than one geeky thing last week;  here's the other:

Converting PLS to CMus playlist format

It's a bash script that serves as a playlist converter for CMus.  CMus (or cmus or C*Mus) is a small, fast and powerful console music player for Unix-like operating systems (that includes OSX, by the way).  It's not much to look at:

but it's really light on the system resources.  It's got a lot of nice features which I simply haven't taken the time to research - but it's also got a playlist feature.  The playlist (at least in the version that's packaged with Ubuntu) is a stripped down version of the PLS format.

Now, I use Clementine (free, runs on *nix, Win, OSX) for actually managing my music library and dynamically changing what I'm listening to.  But I've got some pretty straightforward playlists for certain tasks, and I just want them to play and stay out of my way.  CMus works great for that.  But exporting PLS playlists from Clementine isn't quite the same format as what CMus expects (and it hides that damn playlist as well, expecting you to actually manage it inside CMus).  So I wrote a quick little bash script that will convert your exported PLS playlist from Clementine (and presumably other music players) to what CMus expects