LLC108: Shell Scripting on Linux

In the course LLC108, the participants gain a basic to mid level understanding of the techniques of writing a shell script. They learn to create scripts to automate administrative tasks by understanding the structure of standard examples in shell scripting.

Knowledge of command line usage of Linux OS is essentials. Knowledge of essential user, system and file operation commands is helpful.

Target Audience
This course is intended for software developers, administrators, and other users who want to acquire basic shell programming skills.

Duration: 2 days (Full-time)

Training Fee: Rs.5,000/- (Plus Service Tax)

5,000.00Add to cart

Course Outline

– Shells
– Types of Unix Shells
– Advantages of Shell Scripts

Basics of the Bash Shell
– 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 (Input, Output)
– Program Flow Charts
– General Considerations
– Producing Output From a Script
– Reading User Input
– Simple Operation with Variables
– Basic Strings Operation
– Arithmetic Operations
– Regular Expressions

Basic Script Elements (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
– Reading Options with getopts
– Signal Handling 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)

Useful utilities for Shell Scripts
– cat, cut, date, grep, egrep, sed, test, tr, awk

Special Variable Substitution Operators for Bash

Debugging Shell Scripts

Sample Scripts