JVM based Clojure isn’t very suitable for command line scripting. On the command line you want quick feedback, which is at odds with the time Clojure needs to boot up, and just to run a single source file you need to jump through a few hoops.
Instead you can use Lumo, a ClojureScript runtime environment based on Node.js. In this episode you’ll learn how to write a script in Lumo, and how to make use Node’s built-in libraries, by building your own version of the Unix “tree” command. It’ll also be a handy refresher on recursion.