Matthew's collection of bash functions