Shell Scripting Training

Shell Scripting Training Overview

Download PDF

This course gives participants a comprehensive understanding of shell programming for SH or BASH on Linux / Mac systems. At the end of the course, every participant will learn when to use BASH, operating with networking instructions, to automate activities effectively. Participants also discover the drawbacks and advantages of using a language for shell scripting.

Shell Scripting Training Objective

  • Professional script setup
  • Correctly using command-line options and parameters
  • Techniques of debugging shell scripts
  • Working with networking commands 
  • How to use conditional and looping statements
  • Advanced manipulation of shell variables
  • Good understanding of shell I/O
  • How to build effective, reusable shell functions

Shell Scripting Training Audience

System administrators, Web administrators, and programmers, or any body who would like to have exposure to any unix / linux flavoured operating system. 

Shell Scripting Training Prerequisites

This training is delivered on any of the Mac/Linux platforms. The learning experience is enhanced by a fundamental understanding of the command line interface and Linux-editor (vi, emacs, gedit, nano).

Shell Scripting Training Outline

  • Command Line vs. Shell Script?
  • Review of Command Line
  • Command Syntax
  • Professional Shell Scripting Introduction
  • echo and print Commands
  • Shell Variable Definition
  • read Command
  • Export command at command line and system level
  • Configure PATH
  • Survey of Predefined Shell Variables
  • More on Script Setup
  • Single vs. Double Quotes
  • Variable Substitution
  • Command Substitution
  • Process Substitution
  • Input Redirection
  • Output Redirection
  • Here Documents
  • Advanced File Techniques
  • Using Pipes in Shell Scripts
  • Using print and Standard Error
  • Options for Debugging
  • Script Tracing
  • Conditional Debugging
  • The Exit Status of Commands
  • test and [[ ]] and [ ] Commands
  • if-then-else Construct
  • elif Construct
  • case Statements
  • I/O Redirection on Conditional Statements
  • for Loop
  • arithmetic for Loop
  • while Loop
  • break and continue Commands
  • I/O Redirection on Loops
  • Using Arrays with Loops
  • Command-Line Parameters
  • The shift Command
  • Processing Command Line Options
  • A Trick with Set
  • Shell Functions
  • Passing Arguments to Functions
  • Returning Values from Functions
  • Local Variables
  • Using nameref
  • Function Libraries
  • Shell Arithmetic
  • Shell Variable Manipulation
  • select Statement
  • Terminal Independence in Scripts
  • eval Command
  • Job Control
  • Using ( ) and { ;}
  • Discipline Functions
  • Co-Processes
  • The print and read Commands
  • Signals
  • The trap Command
  • Named Pipes
  • The wait Command
  • Networking in the Shell
  • sed for Shell Scripting
  • Awk for Scripting
  • Using xargs

 

Skills

Register

[miniorange_social_login shape="longbuttonwithtext" theme="default" space="4" width="300" height="50" color="000000"]