| Course Length - 3 Days | | | | | | Course Description In this three-day Shell Programming course, students learn to read, write, and debug shell scripts, thus increasing productivity by taking full advantage of the UNIX shell. | | | | | Course Topics: - Shells and Shell Scripts
- The Shell Environment
- Functions
- Useful Tools
- Conditionals
- Loops
- The sed Editor
- awk
| | | | | | Course Prerequisites Fundamentals of UNIX or equivalent experience is a prerequisite for this course. | | | | | | Who Should Attend? UNIX users, programmers, and system administrators. | | | | | | Suggested Supplemental Reference Learning the Korn Shell, O'Reilly & Assoc., ISBN 1565920546 |
| | | | Course Outline: | | Shells and Shell Scripts | | - What is a Shell?
- What Does a Shell Do?
- Available Shells
- Shell Script Basics
- Child Processes - Subshells
| | | The Shell Environment | | - Startup Scripts
- Variables
- Local vs. Global Variables
- Special Reserved Variables
- Command Line Arguments
- The shift Statement
- Using set
- The read Statement
- Quoting Characters
- Command Substitution
- Quoting and Regular Expressions
- Tilde Expansion in the Korn Shell
| | | Functions | | - Shell Functions
- Positional Parameters
- More on Functions
- Korn Shell Function Files
| | | Useful Tools | | - Command Punctuation
- The test Statement
- Variable Types
- Bourne Shell Arithmetic Operations
- Korn Shell Arithmetic Operations
- Korn Shell Arrays
- Debugging Shell Scripts
| | | Conditionals | | - The if Statement
- Numeric and String Comparison
- if/then/else
- if/then/elif/else
- The case Statement
| | | Loops | | - The while Loop
- The until Loop
- The for Loop
- break and continue
- The Korn Shell select Loop
- The PS3 System Variable
- Terminating the select Loop
- Submenus with the select Loop
| | | The sed Editor | | - What is sed?
- sed Editing Commands
- Printing Text with sed
- Substituting Text with sed
- Deleting Text with sed
- Multiple Editing Commands with sed
- sed Script Files
- Reading Text in From a File
- Writing Output Files with sed
| | | awk | | - awk Syntax
- Built-in awk Variables
- Printing with awk
- Pattern Searching with awk
- awk Scripts
- Additional Variable Use
| | | | |
|