bb Command Examples

Native Clojure interpreter for scripting. More information: https://book.babashka.org/#usage.

bb -e "(+ 1 2 3)"

bb -f {{path/to/script.clj}}

printf "first\nsecond" | bb -i "(map clojure.string/capitalize *input*)"

echo "{:key 'val}" | bb -I "(:key (first *input*))"