Shell Programming Training

Level: Advanced
Rating: 4.8/5 4.81/5 Based on 27 Reviews

In this Shell Programming training course you will learn to customise your working environment for supercharged productivity with KornShell (ksh) and BASH shell (bash) — powerful command-interpreting languages for Linux, UNIX, and Mac OS. You will learn to improve speed by performing multi-file handling and string manipulations without external tools, customise the user environment login scripts, and wrap external file and text handling tools within scripts.Learn Shell programming and gain the skills to write reusable, robust shell scripts, extend your user environment, and automate complex administrative tasks.

Key Features of this Shell Programming Training

  • After-course instructor coaching benefit
  • Learning Tree end-of-course exam included
  • After-course computing sandbox included

You Will Learn How To

  • Write Bash and KornShell scripts for improved productivity
  • Integrate arrays, functions, pattern matching, I/O, branches, loops, and variables
  • Improve speed with multifile handling and string manipulations
  • Create and reuse function libraries

Choose the Training Solution That Best Fits Your Individual Needs or Organisational Goals


In Class & Live, Online Training

  • 3-day instructor-led training course
  • After-course instructor coaching benefit
  • Learning Tree end-of-course exam included
View Course Details & Schedule

Standard £1695




Team Training

  • Bring this or any training to your organisation
  • Full - scale program development
  • Delivered when, where, and how you want it
  • Blended learning models
  • Tailored content
  • Expert team coaching

Customize Your Team Training Experience


Save More on Training with Learning Tree Training Vouchers!

Our flexible, easy-to-redeem training vouchers are available to any employee within your organisation. For details, please call 0800 282 353 or chat live.

In Class & Live, Online Training

Note: This course runs for 3 Days

  • 22 - 24 Nov 2:00 PM - 9:30 PM GMT Herndon, VA / Online (AnyWare) Herndon, VA / Online (AnyWare) Reserve Your Seat

  • 19 - 21 Jan 2:00 PM - 9:30 PM GMT New York / Online (AnyWare) New York / Online (AnyWare) Reserve Your Seat

  • 25 - 27 May 2:00 PM - 9:30 PM BST Herndon, VA / Online (AnyWare) Herndon, VA / Online (AnyWare) Reserve Your Seat

  • 13 - 15 Jul 2:00 PM - 9:30 PM BST New York / Online (AnyWare) New York / Online (AnyWare) Reserve Your Seat

Guaranteed to Run

When you see the "Guaranteed to Run" icon next to a course event, you can rest assured that your course event — date, time — will run. Guaranteed.

Shell Programming Course Information

  • Recommended Experience

    • User-level UNIX commands
    • Simple file editing with basic text, or GUI-based, editor
    • X Window System and basic UNIX networking
  • Software

    • This course uses Red Hat Enterprise Linux
    • Concepts taught are applicable to all Linux distributions

Shell Programming Course Outline

  • Introduction and Overview

    • Benefits of KornShell and Bash vs. other shells
    • Differences between bash, ksh88 and ksh93
    • Integrating scripts with external command-line tools
  • Bash and KornShell Scripting Fundamentals

    Shell script elements

    • Commands and comments
    • Defining exit values

    Conditional program execution

    • Applying if and case statements
    • Simplifying if logic with elif

    Program loops and iteration

    • Conditional looping with while and until
    • Listing for loops

    Testing files and directories

    • Analysing attributes
    • Checking file size and contents

    Strings and patterns using [[ ]]

    • Comparing strings
    • Verifying the existence of a string
    • Pattern matching and special characters


    • Redirecting standard error
    • set commands for debugging
  • Storing and Accessing Data

    Positional parameters

    • Passing and accessing parameters
    • Manipulating parameters as groups

    Shell variables

    • Defining environment and local variables
    • Specifying default values and error conditions


    • Creating and indexing arrays
    • Processing array contents with special variables
  • Processing Data

    Manipulating strings

    • Extracting substrings
    • Determining string length


    • Arithmetic for and while loops
    • Writing mathematical expressions: (( )), $(( )) and let
  • Modular Programming with Functions

    Function basics

    • Functions vs. scripts
    • Parameters and variables

    Creating a function library

    • Finding your library with PATH
    • Dot . and source commands
  • Interacting with the Outside World

    Manipulating files and redirecting data

    • Scripting file and directory management
    • Unravelling the secrets of exec: opening and closing multiple files

    Interacting with running processes

    • Handling errors
    • Processing external events
    • Handling and sending signals: trap and kill

    Accessing network servers

    • Connecting to a network server
    • Exchanging data with a network server
  • Creating "Production Quality" Scripts

    Ensuring environmental control

    • Checking and modifying environment variables
    • Using getopts to process command-line options

    Handling user actions

    • Accepting command-line arguments
    • Employing select to create a menu interface
    • Processing keyboard input

Team Training

Shell Programming Training FAQs

  • Is Shell script a programming language?

    Yes, shell scripts are computer programs run by the Unix shell, which is a command line interpreter. The dialects of shell scripts are scripting languages, and typical operations include file manipulation, program execution, and text printing.

  • What software version is used on this Shell Programming course?

    This course uses a Red Hat Enterprise Linux distribution, however, the concepts covered are applicable to all Linux distributions.

  • I use a different Linux or UNIX distribution, is this Shell Programming course still appropriate for me?

    Yes, the concepts covered in this course are applicable to all Linux distributions.

  • Can I learn Shell Programming online?

    Yes! We know your busy work schedule may prevent you from getting to one of our classrooms which is why we offer convenient online training to meet your needs wherever you want, including online training.

Questions about which training is right for you?

call 0800 282 353
chat Live Chat

Why do we require your location?

It allows us to direct your request to the appropriate Customer Care team.

100% Satisfaction Guaranteed

Your Training Comes with a 100% Satisfaction Guarantee!*

*Partner-delivered courses may have different terms that apply. Ask for details.

Herndon, VA / Online (AnyWare)
New York / Online (AnyWare)
Herndon, VA / Online (AnyWare)
New York / Online (AnyWare)
Why do we require your location?

It allows us to direct your request to the appropriate Customer Care team.

Preferred method of contact:

Please Choose a Language

Canada - English

Canada - Français