Bash - Shell Scripting
COURSE CODE: LA105
SYNOPSIS :
LA105 Shell Scripting training is specifically designed to develop skills required for automation on Unix / Linux Environment. This course focuses on the basic and intermediate level of Scripting. It provides training with hands on session to administer the linux shell.
SUITABLE FOR :
For Unix / Linux Administratos
PREREQUISITES :
- Knowledge in Unix / Linux Platform
- Basic Knowledge in Shell Commands
DELIVERY :
This course makes extensive use of practical exercises. The person gains experience on implementing simple automation on Linux platform.
COURSE CONTENTS:
Introduction
-Shells
-Types of Unix Shells
-Uses fir Shell Scripts
-Advantages of Shell Scripts
Bash Basics
-Initialization Files
—-Login Shells, Non-Login Shells
-Aliases, Variables
—-Working with Variables
—-Important Internal Bash Variables
-Command History
-Input and Output Channels
—-Redirection to Files
—-The here Operator <<
—-Feeding Output to Another Process
—-Duplicating the Output with tee
-Types of Commands
-Quoting
-Substitution and Expansion
—-Variable Substitution
—-Filename Expansion(File Globbing)
—-Command & Arithmetic Substitution
—-Command-Line Interpretation
—-Command Separators
Basic Script Elements 1(Input,Output)
-Program Flow Charts
-Producing Output From a Script
-Reading User Input
-Simple Operation with Variables
—-Basic Strings Operation
—-Arithmetic Operations
Basic Script Elements 2(Control Structures)
-Simple Branching With if
—-Short Form of if
-Multiple Branch with case
-Iterations and Loops
—-Looping With while and until
—-Processing a List With for
-Exiting From a Loops
—-Exiting from the Current Loop
—-Iteration with continue
—-Exiting from the Loop with break
Advanced Scripting Techniques
-Reading input with read
Shell Functions
-Passing argument to function
-Passing array to function
-Checking exit status of function
-Making library function
-Recursive function
-Reading Options with getopts
-Signal Handiling with trap
-Implementing Simple Menus with select
Dialog Boxes with dialog
—-Yes/No Box(yesno)
—-Message Box(msgbox)
—-Input Box(input box)
—-Text Box(text box)
—-Menu Box(menu)
—-Check List Box(checklist)
—-Radio List Box(radiolist)
—-progress Meter Box(gauge)
Graphical Boxes with zenity
—-Yes/No Box(yesno)
—-Message Box(msgbox)
—-Input Box(input box)
—-Text Box(text box)
—-Menu Box(menu)
—-Check List Box(checklist)
—-Radio List Box(radiolist)
Useful Commands for Shell Scripts
-cat, cut, date, echo, grep, sed, tr
Regular Expressions
Debugging Shell Scripts
Sample Scripts
DURATION
- Full Time - 2 Days - 16 Hours
- Part Time - 2 hrs / day - Monday - Friday
