commands.sh

bb

all

Native Clojure interpreter for scripting.

More info →

Options (2)

-e, --evalboolean

Evaluate an expression

Example: bb {{[-e|--eval]}} "(+ 1 2 3)"
-f, --fileboolean

Evaluate a script file

Example: bb {{[-f|--file]}} {{path/to/script.clj}}

Examples (4)

Evaluate an expression

bb [-e|--eval] "(+ 1 2 3)"

Evaluate a script file

bb [-f|--file] path/to/script.clj

Bind [i]nput to a sequence of lines from `stdin`

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

Bind [I]nput to a sequence of EDN (Extensible Data Notation) values from `stdin`

echo "{:key 'val}" | bb -I "(:key (first *input*))"
made by @shridhargupta | data from tldr-pages