Training Program Details
COURSE CONTENT
Introduction
What is Shell Programming?
Benefits Of Shell Versus C Language
Getting Started
REVIEW OF SOME BASICS
Quotes
Single Quotes
Double Quotes
Back Quotes
Command Substitution - Alternate Syntax
Escape Character ()
Redirection
Regular Expressions
Filters
GREP / EGREP
SORT
WC
TR
CUT
ED
ED/SED Commands
SED
AWK Overview
VARIABLES
Types of Variables
Naming of Variables
Assigning a Value to a Variable
Using the Value of a Variable
Built-in Variables
User-Defined Variables
Positional Parameters (Variables)
Special Positional Parameters
Variables Read From Input
The READ command
The SET and EXPORT Commands
Integer Variables
The TYPESET Command
Using LET for Arithmetic Expressions
Enclosing a Variable Name Within Braces - ' '
Conditional Statements
Exit (return) Status
Determining the Exit Status of a Command
The IF Statement
The EXIT Command
The TEST Command
The TEST Command - The ' ' Syntax
The TEST Command - Numeric Comparisons
The TEST Command - File/String Attributes
The IF-THEN-ELSE Statement
The Nested IF Statement
The IF-THEN-ELIF Statement
The "&&" and " " Conditional Operators
Debugging A Shell Program
The SET Command
Documenting a Shell Program
The WHILE Loop
The WHILE Loop
The BREAK Command
The SHIFT Command
The CONTINUE Command
The TRUE and FALSE Commands
The FOR loop
The FOR Loop
The CASE Statement
The CASE Statement
The SELECT Loop
FUNCTIONS
The RETURN Command
Miscellaneous Other I/O Topics
The HERE Document
The GETOPTS Command
Traps and Signals
The TRAP Command
The TPUT Command
Arrays and String Operators
Defining an Array
Accessing Array Values
Some Other Special Variables
String Operators
A Brief Discussion of the AWK Programming Language
Appendix A - Differences between the Korn and Bourne Shells