Get an introduction to Linux bash scripting. Learn how to read and write Linux bash scripts, complete with local variables, functions, loops, and coprocesses, and use sed and AWK.
- Shell scripting is a skill that benefits Linux users, system administrators, and software developers. The most commonly used shell on Linux is Bash. I'm Kevin Dankwardt and for over 20 years I have been a Linux administrator and developer and have written thousands of Bash scripts short and long. I'll show you how to write and read Bash scripts. We start with the basics, discussing features such as environment and local variables, we then move on to functions, looping, case statements, and later to more advanced features such as sed, awk, string operations, and coprocesses.
Throughout the course I demonstrate the functionality and then provide you with challenge exercises to test your understanding. Once you have gained these skills with Bash scripting, you'll find yourself routinely writing scripts to save time and be more productive, automating the tasks that before you would have done by hand. In addition, shell knowledge is required for a variety of Linux certifications. Enjoy the course.
- Exploring the Bash documentation
- Setting the script interpreter and permissions
- Sourcing and aliasing with bash
- Displaying text with echo
- Using the typeset and declare commands for variables
- Reading input
- Defining functions
- Using operators
- Using filters and parameter expansion
- Advanced bash scripting techniques