I currently have a good grasp of bash and can use it to do most things I want, however I am unfamiliar with it as a language on the whole. I want to be able to easily write a rigorous script in bash without having to look up the particulars of bash syntax and methodology. To that end, I want to formally learn about the topics below.
Topic(s) | Addressed |
---|---|
General understanding of bash environment, commands and grammar |
Yes |
Path and variable expansion | Yes |
if else and case statements |
Yes |
Booleans | Yes |
Comparing different variable types (e.g. less than, more than, equal to) | Yes |
for loops |
Yes |
Redirection and piping | Yes |
Difference between > and >> |
Yes |
Proper use of grep |
Yes |
Reading in user input | Yes |
The intricacies of bash, shell and environment variables (e.g. when to export ) |
Yes |
File and directory manipulation (e.g. checking if a directory exists, using the find command) |
Yes |
Functions and positional arguments | Yes |
Aliases | Yes |
Multi-line string inputs e.g. here-docs | Yes |
Use of chmod |
Yes |
Arguments and flags for echo |
Yes |
printf vs echo |
Yes |
Exit codes | Yes |
Resources: