Clojure files and Scripts

The clojure command will take a file name as an argument, evaluated all the Clojure code in that file and return the result. A file is useful for simple Clojure scripts and batch processing jobs.

  1. clojure script.clj

Hint::Babashka - scripting with Clojure

Babashka is a alternative to Bash scripting, using the Clojure language for scripts. Babashka is native compiled using Graal so is very fast.