Introduction
Welcome
()
What you should know
()
1. Shell Scripting Basics
Challenge: Create a script
()
Solution: Create a script
()
Printing to the console
()
chmod
()
Comments
()
The shebang
()
Creating and using variables
()
Passing parameters
()
2. Branching and Loops
Challenge: Counter
()
Solution: Counter
()
The if statement
()
The else clause
()
The elif clause
()
The while loop
()
The for loop
()
Using break and continue
()
3. Environment Variables
Challenge: Display a variable
()
Solution: Display a variable
()
Reading environment variables
()
Standard environment variables
()
4. Functions
Challenge: Pipes and functions
()
Solution: Pipes and functions
()
The basics of functions
()
Using parameters
()
Piping
()
5. File Operations
Challenge: Read a text file
()
Solution: Read a text file
()
Reading files
()
Writing files
()
File checksums
()
6. Sleep and Process
Challenge: Watch a script
()
Solution: Watch a script
()
Using the sleep command
()
Watching a process
()
7. Interactive Scripts
Challenge: Guessing game
()
Solution: Guessing game
()
Getting input from users
()
Handling bad data
()
Ex_Files_Learning_Linux_Shell_Scripting.zip
(25 KB)