We have
trainers for:

 
 
 
Unix Shell Scripting

Unix Korn Shell Scripting
4 days

Audience: System Administrators and Users who need to automate daily tasks.

Prerequisites: Unix Fundamentals or equivalent understanding

Overview: This course will enable students to read, write, and debug shell scripts. Students will also learn when to use Shell Scripts to automate tasks in order to increase efficiency on the job.

Course Content:

Chapter 1 - Introduction

Conventions
What is Shell Programming?
Benefits Of Shell Versus C Language
Getting Started

Chapter 2 - 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
Chapter 2 - Summary
Chapter 2 - Exercises

Chapter 3 - 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 Command
Integer Variables
The TYPESET Command
Using LET for Arithmetic Expressions
Enclosing a Variable Name Within Braces - '{}'
Chapter 3 - Summary
Chapter 3 - Exercises

Chapter 4 - 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
Chapter 4 - Summary
Chapter 4 - Exercises

Chapter 5 - The WHILE Loop

The WHILE Loop
The BREAK Command
The CONTINUE Command
The TRUE and FALSE Commands
Chapter 5 - Summary
Chapter 5 - Exercises

Chapter 6 - The FOR loop

The FOR Loop
Chapter 6 - Summary
Chapter 6 - Exercises

Chapter 7 - The CASE Statement

The SHIFT Command
The CASE Statement
The SELECT Loop
FUNCTIONS
The RETURN Command
Chapter 7 - Summary
Chapter 7 - Exercises

Chapter 8 - Miscellaneous Other Items

The HERE Document
The GETOPTS Command
Traps and Signals
The TRAP Command
The TPUT Command
The EVAL Command
Chapter 8 - Summary
Chapter 8 - Exercises

Chapter 9 - A More Detailed Overview of the AWK Programming Language

.
   
back to top

UnixTrainer, Inc.
760-471-7070
Trainers@UnixTrainer.com