Babashka is a great way to write shell scripts. But Unix pipelines are also great! Want to know how to make those pipelines in Babashka? Please read on.
Here’s a Unix pipeline count count how many times I’ve mentioned Lisp on my site:
find .. | grep index.org | xargs cat | grep -i lisp | wc -l
57
Let’s translate that pipeline step by step to Babashka.
bb -e <<EOF
(+ 1 2 3)
EOF