Linux Bash Shell Scripting

  • Print

 

Course Overview

This four-day course is designed to give participants practical experience in developing and writing Bash shell scripts. Most of the built-in shell commands are introduced together with the main program control structures. The course also gives practical experience using a range of Linux tools to manipulate text and incorporate into Linux Bash shell scripts.

 

Download Brochure pdf-logo
 

Prerequisites

Have an experience using Linux Operating System and have basic programming skills.

 

Who Should Attend

System / Network administrators & support people, programmers and prospective Linux power users, looking to harness the power of task automation through shell scripting.

 

Linux Bash Shell Scripting – Schedule

Day 1

09.00am – 10.00am

Bash & Bash Scripts

  • Bash Scripting Overview
  • Shell Programs & Command Executions
  • Shell Building Blocks
  • Developing Good Scripts
10.00am – 10.30am

Breakfast

10.30am – 12.45pm

Writing & Debugging Scripts

  • Creating & Running Scripts
  • Script Basics
  • Debugging Bash Scripts

 

The Bash Environment

  • Shell Initialization Files
  • Variables
  • Quoting Characters

12.45pm – 02.15pm

Lunch

02.15pm – 05.00pm

The Bash Environment (Continue)

  • Shell Expansion
  • Aliases
  • Bash Options

Day 2

09.00am – 10.00am

Regular Expressions

  • Regular Expressions
  • Using Grep
  • Pattern Matching using Bash Features

10.00am – 10.30am

Breakfast

10.30am – 12.45pm

GNU Sed Stream Editor

  • Sed Commands
  • Interactive Editing
  • Non-Interactive Editing

12.45pm – 02.15pm

Lunch

02.15pm – 05.00pm

GNU AWK Programming Languages

  • Gawk Commands
  • Print Program
  • Gawk Scripts and variables

Conditional Statements

  • If/then/elif/else Constructs
  • Nested if Statements
  • Boolean Operations
  • Using Case Statements

                                                                        Day 3

09.00am – 10.00am

Writing Interactive Scripts

  • Displaying User Message
  • Catching User Input

10.00am – 10.30am

Breakfast

10.30am – 12.45pm

Repetitive Tasks

  • The for loop
  • The while loop
  • The until Loop
  • I/O Redirection and Loops
  • Break and Continue
  • Making Menus with the Select Built-in
  • Shift Built-in

12.45pm – 02.15pm

Lunch

02.15pm – 05.00pm

More On Variables

  • Variables Types
  • Array Variables
  • Operation on Variables

Functions

  • Function Syntax
  • Functions in Scripts

Catching Signals

  • Signals
  • Traps