Level 2 — Intermediate
These lessons cover functions, arrays and associative arrays, exit codes and error handling, argument parsing, grep, sed, awk, find and xargs, processes and job control, environment and configuration, working with JSON and APIs, and testing scripts. Recommended: the Level 1 lessons, especially variables, quoting, conditionals, and loops.
Lessons in this module
- 1. Functions 6 min
- 2. Local Variables and Return Values 5 min
- 3. Arrays 6 min
- 4. Associative Arrays 4 min
- 5. String Manipulation 6 min
- 6. Error Handling in Scripts 6 min
- 7. Parsing Options with getopts 6 min
- 8. Searching Text with grep 6 min
- 9. Editing Text with sed 6 min
- 10. Processing Columns with awk 7 min
- 11. The Text Toolkit: sort, uniq, cut, tr, and Friends 5 min
- 12. Finding Files: find and xargs 6 min
- 13. Processes and Job Control 5 min
- 14. Environment Variables and Configuration 5 min
- 15. printf and Here Documents 5 min
- 16. Dates and Times 4 min
- 17. Archives and Compression 4 min
- 18. Working with JSON and APIs 6 min
- 19. Debugging Scripts 5 min
- 20. Testing Scripts with Bats 5 min