Shell Scripting Course Content
1. Introduction to Shell Scripting · What is the UNIX Shell? · Which Shell? · What is a Shell Script?
2. Your First Shell Script · A Basic Script · The echo Command · The read Command · Shell Basics Revisited · Comments · Chapter Exercises · Exercise Solutions
3. Running a Shell Script
· Running a Script on the Command-line · Running a Script from within vi · Your PATH and bin · Splitting Actions · Script Interpreters · CGI Scripts
4. Shell Programming Features · Shell Variables · Environment Variables · The Trouble with Quotes · Line Control · Chapter Exercises · Exercise Solutions · Introducing the Course Project · Course Project Solution
5. Conditional Code
· True and False · Conditional Command Execution · The if Statement · The else Clause · The elif Clause · Using test · The case Statement · Chapter Exercises · Exercise Solutions
6. Loops · The while Loop · break and continue · Numerical Calculations · The for Loop · Chapter Exercises · Exercise Solutions
7. Text Processing
· About Filters · grep · Regular Expressions · sort · awk · Chapter Exercises · Exercise Solutions
8. Functions
· Program Structure · Defining and Calling a Function · Function Parameters · Function Return Values · Case Study: The yesno Function · Functions in Other Files · Chapter Exercises · Exercise Solution
9. Command-line Parameters
· Using Command-line Parameters · Using shift · Using set · Using IFS · Usage Messages · Chapter Exercises · Exercise Solutions · 10. Advanced Scripting · Debugging · Default Values for Variables · Preventing Abnormal Termination · Chapter Exercises · Exercise Solutions · The End
|