[WayBack] pure-bash-bible/README.md at master · dylanaraps/pure-bash-bible · GitHub:
The goal of this book is to document known and unknown methods of doing various tasks using only built-in
bash
features. Using the snippets from this bible can help remove unneeded dependencies from scripts and in most cases make them faster. I came across these tips and discovered a few while developing neofetch, pxltrm and other smaller projects.The snippets below are linted using
shellcheck
and tests have been written where applicable. Want to contribute? Read the CONTRIBUTING.md. It outlines how the unit tests work and what is required when adding snippets to the bible.See something incorrectly described, buggy or outright wrong? Open an issue or send a pull request. If the bible is missing something, open an issue and a solution will be found.
Via:
- [WayBack] A collection of pure bash alternatives to external processes. – John Hardy – Google+
- [WayBack] Interesting book/notes. I’m tempted to work through it and document how it’s done in zsh instead. Maybe a winter’s task … now is lavender time. Z-Shell has, for example, a more consistent notion of arrays. And better file matching patterns, e.g. *(.) to match only files, or *(/) to match directories only.
—jeroen