training

 

Advanced Linux Shell Scripting – 3 Days

Course Description

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.

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.

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.

Outline

                           Review of  (Core) 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

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

 

MindIQ.com

Print Friendly, PDF & Email