Description
In this course, you will :
- Able to read and create scripts to automate many kinds of tasks in Linux.
- The fundamentals of scripting are covered, such as printing to the console and defining variables.
- How to write scripts that accept parameters, read and write files, and keep track of other system processes.
- How to write interactive scripts and deal with incorrect input data.
Syllabus :
1. Shell Scripting Basics
- Printing to the console
- chmod
- Comments
- The shebang
- Creating and using variables
- Passing parameters
2. Branching and Loops
- The if statement
- The else clause
- The elif clause
- The while loop
- The for loop
- Using break and continue
3. Environment Variables
- Reading environment variables
- Standard environment variables
4. Functions
- The basics of functions
- Using parameters
- Piping
5. File Operations
- Reading files
- Writing files
- File checksums
6. Sleep and Process
- Using the sleep command
- Watching a process
7. Interactive Scripts
- Getting input from users
- Handling bad data