practice-shell-scripts
learn bash until it's in your bones
Attempting to piece together learn Bash from various online resources. Practice makes perfect and the more scripts you can run through and understand, the better you will become. When in doubt, practice another script.