UNIX/sed semi-solution

This may not comply with the rules, but I thought it was fun!
Should work on all UNIX systems with `sed` installed.

I think the only rule this violates is number 4.