EncartaLabs

UNIX Shell Scripting

( Duration: 1 Day )

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.

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

  • Knowledge of UNIX basics

  • Linux/AIX/Solaris system administrators, Programmers

COURSE AGENDA

1

Creating a Simple Shell Script

  • 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
2

Filename Generation & Quoting

  • Metacharacters
  • Filename Generation Characters
  • Filename Generation
  • Quoting
  • The Comment Character
3

Using Shell Variables in Scripts

  • Creating and Referencing Variables
  • Executing Files
  • An Example Process Hierarchy
  • visibility of Shell Variables
  • The Environment of a Process
4

Input for Shell Scripts

  • Command Substitution
  • Interactive Input for Shell Scripts
  • Command Line Input
  • Catching Signals
  • Partial Quoting
  • Overview of Shell Interpretations
5

Using Conditional Constructs

  • Flow Control Constructs
  • The case Construct
  • Return Values
  • The exit Command
  • Using the if and test Commands
  • Moving Command Arguments
  • Conditional Operators
6

Using Looping Constructs

  • 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

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 4,000 Modules on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting http://encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top