UNIX shell scripting

By attending UNIX Shell Scripting workshop, Participants will learn:

  • Writing simple scripts to enhance basic command output
  • Using the various shell quoting mechanisms appropriately
  • Manipulating shell variables and user-defined variables in scripts
  • Implementing conditional execution facilities
  • Using the shell’s built-in loop constructs where appropriate
  • Writing scripts to trap user interrupts
  • User defined Functions
  • Developing menu-driven shell scripts

The UNIX Shell Scripting Training course is designed to give delegates practical experience in developing and writing UNIX shell scripts. Most of the built-in shell commands are introduced together with the main program control structures.

  • Knowledge of UNIX basics

  • Linux/AIX/Solaris system administrators, Programmers

COURSE AGENDA

  • Metacharacters
  • Filename Generation Characters
  • Filename Generation
  • Quoting
  • The Comment Character
  • Introduction
  • The Shell as a Programming Language
  • Creating Shell Scripts
  • Some Basics
  • Input and Output Redirection
  • Scripts vs Compiled Programs
  • Shell Script Examples
  • More about Running Scripts
  • Creating and Referencing Variables
  • Executing Files
  • An Example Process Hierarchy
  • visibility of Shell Variables
  • The Environment of a Process
  • Command Substitution
  • Interactive Input for Shell Scripts
  • Command Line Input
  • Catching Signals
  • Partial Quoting
  • Overview of Shell Interpretations
  • Flow Control Constructs
  • The case Construct
  • Return Values
  • The exit Command
  • Using the if and test Commands
  • Moving Command Arguments
  • Conditional Operators
  • Overview of Looping Constructs
  • Looping Over a List
  • Skipping Items
  • Generating Word Lists
  • Waiting for Something to Happen
  • Looping While a Condition Holds
  • More about break and continue
  • Redirection