The Complete UNIX-LINUX Shell Scripting Course
(UNXSHELL, Live Instructor-Led Training, 4 days)


This SETC certified course is an introduction to the many possibilities of shell scripting in a UNIX or LINUX environment. The course provides an overview of the benefits of using shell scripts starting with the basics and moving to command structure, operators, scalars, flow control, sub-routines, collections and lists. Students get hands-on experience working with sell scripts that automate just about any aspect of the UNIX environment. If you want to write powerful scripts that automate those repetitive tasks, this is the course for you.

Dates and Pricing

Jan 23 to Jan 26, 2018$2,500/person Feb 20 to Feb 23, 2018$2,500/person Mar 20 to Mar 23, 2018$2,500/person


Getting Started
The Need for a Shell
Running Shell Scripts
Debugging Shell Scripts
Available Shells
About Csh
About Bash : Bourne Shell
About Kornshell
About Zsh
About Tcsh
Choosing the Right Shell
Obtaining Help with Man Pages
Text Editing
Linux Text Editors
The Pico Editor
The Nedit Editor
The Emacs Text Editor
The Vi Text Editor Family
The Vi Editor
What Is Vi
Review of Vi Commands
Vi Buffering
Command Mode and Insert Mode
Moving the Cursor Around
Inserting Text
Deleting a Character Or Line
Undo Last Command
Opening a New Line
Save Your Work Or Abort the Session
More Editing with Vi – If Time Permits
Scrolling the Buffer
The Join Command
The File Command - :f
Edit File Command - :e
Cut and Paste Between Files
Read File Command - :r
Set Options Command
Set Options Command - .exrc File
Cursor Motion Commands - W,w,b,b,e,e
Cursor Motion Commands - $,^,0,g
Cursor Motion Commands - F,t,f,t
Delete Operator - D
Change Operator - C
Yank Operator - Y
Put Commands - P,p
Searching for a Pattern - /,n,n
Using the Shell
The Command Line
Standard Input, Standard Output and Error
Using Default Standard In and Output
I/o Redirection
I/o Redirection - Examples
I/o Redirection - Warning
Appending Output of a File
The Tee Utility
Filename Generation
Filename Generation
The ? Special Character
The * Special Character
The [ ] Special Characters
The ! Special Character
What Is a Process
Process Structure
The Ps Utility
Options To the Ps Utility
Background Commands
Killing Background Processes
Redirecting the Standard Error
Shell Programming Concepts
What Is a Shell
Which Shell
What Is a Shell Script
Why Use Shell Scripts
Flow Control
The Exit Status of Commands
Command Line Examples
The Test Command
The If-then-else Construct
The Elif Construct
A Loop Example
User Created Variables
The Read Command
The Shell Environment
The Export Command
Command Substitution
Quoting Mechanisms
Assigning Variables Summary
Special Variables
- Number of Arguments
The Shift Command
- All Arguments
- Pid of Shell
More Flow Control
The for Loop
The While Loop
The Case Construct
Common Unix Filters
Editing the Output of Commands with the Stream Editor Sed
Translating Characters with Tr
Sorting Files and Command Output
Comparing Different Versions of Files
Using Other Common Filters: Cut, Uniq & Tee
Combining Filters for Complex Text Processing
Executing Filter Commands with Find
Restructuring Data with Awk
Testing and Extracting Fields From Structured Input
Searching Files with Multiline Records
Performing Arithmetic Calculations
Writing Useful Awk One-liners
Matching Patterns with Extended Regular Expressions
Modifying Awk Default Behaviors
Calling Awk Built-in Functions
Using Awk Control Constructs for Testing and Looping
Storing Data in Arrays
Formatting Output Using Printf