Comment by adityaathalye
2 years ago
Sidelight: I tend to use functions as Unix tools a lot more than scripts as Unix tools. No need for PATH twiddling, file ownership/permission setting, among other things. I wrote about it here: https://www.evalapply.org/posts/shell-aint-a-bad-place-to-fp...
I do this too! Bash functions are incredible. They have to be the most awesome under-used function (pun intended) I know of
Ah a fellow person of culture :D
Maybe you will enjoy my "bash-toolkit" repo: https://github.com/adityaathalye/bash-toolkit which I've dubbed my "Swiss Army Toolkit" of functions-as-cmd-line-tools and useful-to-me patterns.
Which reminds me, I've collected more and should update the repo!