Functional shell scripts