Advanced Linux Shell Scripting

Linux Training Overview

This course presents to the Linux / Unix computer professional (user, systems administrator, application/system programmer) the techniques needed to develop advanced shell and reporting type procedures. The techniques shown are applicable to all Linux system variants.

Linux Training Prerequisites

This is an advanced Linux / Unix course. It is assumed that participants either have attended a Linux or Unix Essentials course, or have equivalent command line experience with the bash and/or Korn shells.

Linux Training Course duration

This course normally requires three (3) days, approximately 50 % lecture, and 50 % lab time.

Linux Training Course Objectives

Each participant will be able to use bash shell, Korn shell , and awk capabilities to maintain collections of files,manipulate data, implement process communication, synchronization, and data sharing. Brief comparisons in techniques and performance considerations with Perl will also be shown.

Linux Training Course outline

Review of Shell Scripting Features
  • Importance of signatures
  • Methods of script execution
  • Debugging shell scripts
  • Variable types
  • Looping statement constructs
  • Decision statements
Advanced Techniques in Shell Scripts
  • Alternative script execution methods
  • Defining a trap step debugger
  • Here Document data
  • Defining and using functions
  • Using string pattern expressions
  • Indexed array creation and access
  • Option processing with getopts
Advanced Techniques in Korn Shell Scripts
  • Advanced Techniques in Korn Shell Scripts
  • Availability of variable data
  • Defining and using nameref variables
  • Active variables (and tied functions)
  • Features of Associative arrays
  • Direct control of file I/O (exec, read, print)
    • User-defined file descriptors
  • Interprocess communication/synchronization
    • Co-processes
    • Reassignment of file descriptor paths
  • TCP and UDP port access
    • Attaching to network listener processes
Awk Scripting Features
  • Importance of signatures
  • Methods of script execution
  • Patterns and actions
  • Output formatting
  • Defining and using associative arrays
  • the getline( ) function
  • awk supplied function features
    • string handling
    • information
    • callouts for system features
    • arithmetic operations
  • Defining and using functions
    • Passing arguments to functions
Introduction to Perl Scripting
  • History, versions, ports
  • Perl capabilities
  • Comparison with shell scripts



Wintrac Inc.
16523 SW McGwire Ct.
Beaverton OR 97007
© Wintrac, Inc. All rights reserved.                                                                               Site Map   |   Terms of Use   |   Privacy Policy