mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* pages*: add missing mnemonics --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
20 lines
486 B
Markdown
20 lines
486 B
Markdown
# bb
|
|
|
|
> Native Clojure interpreter for scripting.
|
|
> More information: <https://book.babashka.org/#usage>.
|
|
|
|
- [e]valuate an expression:
|
|
|
|
`bb -e "(+ 1 2 3)"`
|
|
|
|
- Evaluate a script [f]ile:
|
|
|
|
`bb -f {{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*))"`
|