This article gives some useful patterns for writing bash scripts.
For example: Fail fast in case of errors and Clean up after yourself even in unexpected situations
https://barro.github.io/2016/02/shell-script-patterns-for-bash/
Posted from WordPress for Android
1 Comment
Tomi Engdahl says:
Linux Fu: Better Bash Scripting
http://hackaday.com/2017/07/21/linux-fu-better-bash-scripting/