A framework for writing bash scripts