Bash Shell Scripting in 4 Hours
Get started with Bash
Bash is used as the default shell on Linux, UNIX and Mac OS systems around the globe and Bash shell scripts are used to automate tasks. In this course students will learn the essentials for Bash shell scripting. Learn how to interpret Bash shell scripts and also how to develop new Bash shell scripts. Get up and running today.
What you'll learn-and how you can apply it
- Learn how to write your first hello world shell script
- See how to work with variables
- Use positional parameters
- Apply pattern matching substitution
- Explore looping structures in shell scripts
This training course is for you because...
- This Training provides candidate with the basic skills that are required for working with Bash shell scripts
- Basic knowledge or experience with Linux is recommended
To follow along with the hands-on parts of this course, you are invited to create a new (virtual) machine before the start of the course. Build it according to the following specifications: 1 virtual machine with any Linux distribution, hardware specs are not important.
A basic understanding of Linux will help participants. This knowledge can be found in "Beginning Linux System Administration" (video)
About your instructor
Sander van Vugt started working with Linux in 1992. He wrote his first book about Linux in 1999, and up to date has completed 62 different books on Linux related topics, including the best selling RHCSA/RHCE 7 Cert Guide. Sander is the author of over 20 Linux related video courses. He also works as a Linux instructor, teaching on-site and on-line classes for customers around the world.
The timeframes are only estimates and may vary according to how the class is progressing
Segment 1: Writing a shell script with all basic elements (30 minutes)
- Students will learn how to write a shell script with all the basic elements, including best practices for writing readable shell scripts.
Segment 2: Working with Variables (30 minutes)
- Students will learn how to use variables in shell scripts
10 Minute Break
Segment 3: Using Positional Parameters (20 minutes)
- Students will learn how to use command line arguments with shell scripts and how to process their values within the scripts
Segment 4: Applying Pattern Matching substitution (30 minutes)
- Students will learn how to manipulate text strings in shell scripts, to shape them exactly as required for specific tasks
10 Minute Break
Segment 5: Using looping structures (50 minutes)
- Students will learn how to work with common looping structures, such as if, case, for and while