A few bash utility functions.