bb
Native Clojure interpreter for scripting. More information: https://book.babashka.org/#usage.
- Evaluate an expression:
bb "(+ 1 2 3)"
- Evaluate a script file:
bb
- 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*))"
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
