some nifty bash bits n bobs