Most useful of my hacked-together shell scripts