useful bash scripts wrapped in a shell