UNIX/sed semi-solution

This definitely violates several rules, but I thought it was fun!
Should work on all UNIX systems with `sed` installed.