The scripts I ever programmed are just like little fairies who get jobs done magically. May you feel helpful with them.
Programming a robust Bash script is usually non-trivial. Fortunately, you can refer to bash_bootstrap.sh
to bootstrap you Bash script in a right shape. Moreover, you may also leverage bin/bootstrap_sh
to further ease the bootstrapping. (See the quick two-step setup here)
- Google Shell Style Guide
- Bash Guide for Beginners (by Machtelt Garrels)
- Shell常用招式大全之入门篇
- Best Practices for Writing Bash Scripts (by Kevin van Zonneveld)
- progrium/bashstyle (by Jeff Lindsay)
- Bash Scripting Best Practices (by Yaroslav Tkachenko)
- Bash best practices (by Bert Van Vreckem)