5 ms·
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 oth
by adityaathalye 4y 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-part-2-functions-as-unix-tools/index.html#main https://www.evalapply.org/posts/shell-aint-a-bad-place-to-fp...
- freedomben 4y agoI do this too! Bash functions are incredible. They have to be the most awesome under-used function (pun intended) I know of
- adityaathalye 4y agoAh a fellow person of culture :D Maybe you will enjoy my "bash-toolkit" repo: https://github.com/adityaathalye/bash-toolkit 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!