A random programming assignment in bash.