More bash goodness as I learn along the way