Course Content
Creating a Simple Shell Script
- Introduction
- The Shell as a Programming Language
- Creating Shell Scripts
- Some Basics
- Input and Output Redirection
- Scripts vs Compiled Programs
- Shell Script Examples
- More about Running Scripts
Filename Generation & Quoting
- Introduction
- Metacharacters
- Filename Generation Characters
- Filename Generation
- Quoting
- The Comment Character
Using Shell Variables in Scripts
- Introduction
- Creating and Referencing Variables
- Executing Files
- An Example Process Hierarchy
- visibility of Shell Variables
- The Environment of a Process
Input for Shell Scripts
- Introduction
- Command Substitution
- Interactive Input for Shell Scripts
- Command Line Input
- Catching Signals
- Partial Quoting
- Overview of Shell Interpretations
Using Conditional Constructs
- Introduction
- Flow Control Constructs
- The case Construct
- Return Values
- The exit Command
- Using the if and test Commands
- Moving Command Arguments
- Conditional Operators
Using Looping Constructs
- Introduction
- Overview of Looping Constructs
- Looping Over a List
- Skipping Items
- Generating Word Lists
- Waiting for Something to Happen
- Looping While a Condition Holds
- More about break and continue
- Redirection