Random bash functions from days of yore