finished bash hacks/elegant code post