helper utilities to use when writing bash scripts