Learn Bash Scripting
Turn the commands you already type into scripts you can trust. Write a script file, use variables and quoting, make decisions and loops, take arguments and input, and add functions, exit codes and safety switches, all while building a programme for a small folk festival.
- Intermediate level
- 2 modules
- 10 lessons
- 60 quiz questions
Syllabus
01Writing Your First ScriptsPut commands in a file and run them, store values in variables without tripping on quoting, then make the script decide and repeat.5 lessons
02Scripts That Take Input and BehavePass arguments and read answers, wrap repeated work in functions, report problems with exit codes, and add the switches that make a script fail loudly instead of quietly.5 lessons