Googling challenge: If you have a bash programming question that you cannot find a decent answer, throw the Googling challenge to your fellows in the discussion forum!
/, n) and jump (p, G) in man pagesman man-pagesPager: What is pager and what does it do? Name few pagers? What pager is your man command using?
The most important course material for this course is man bash. The lectures
and exercises contain terms (and operators) that you can search from the Bash
man page.
Man bash. How would you jump to the section of the Bash man page that describes Parameter expansion?
You can turn on command echoing with set -x, to see how the variables
are expanded and how the program flows.
Command echoing: How do you turn off command echoing? What other means of shell script debugging can you find?
Save useful commands and short scripts to a file for later reference, and push your notes to GitHub every now and then. Bash history keeps all the commands that you typed, but it also keeps the ones that did not work…
Do not settle with the first solution. Your next solution can be more obvious and succinct.
In practice, if you receive a shell script from a colleague, do not expect it to work for you out of the box. As is, it will not work for your colleague either, most likely. Instead, take it as very valuable documentation, and while fixing the details, develop it to make it just a little bit more concise, obvious and beautiful.