Multi-vendor Korn Shell Programming

Level:
Costs:
Total time:
Provider rating: 10 Perpetual Solutions has an average rating of 10 (out of 1 reviews)
Logo Perpetual Solutions

Tip: Receive more information about the programme, starting dates & price. Or request a proposal from multiple providers for in-house training.

Overview

Your experience of this course?

Did you attend the course Multi-vendor Korn Shell Programming at Perpetual Solutions? Help other people by submitting your review at Springest!

Springest will donate £1.- to the Edukans Foundation as a thank you for each review

 
Schedule:
Daytime
Run time:
4 Days
Location type:
Open

completion, maximum participants, and starting dateplaces are unknown for this course.

Prerequisites:

Delegates must have a good working knowledge of the Unix system. This can be gained by attending the UNIX Fundamentals course. Some practical understanding of programming concepts is also required. Typically, delegate skills will include a working knowledge of UNIX commands and utilities, proficiency in using a generic UNIX file editor, preferably vi, and familiarity with programming concepts, such as batch processing, loops, decision-making constructs.

Course Description:

Regular users of UNIX know that using advanced commands, shell features and shell scripts, improves efficiency and productivity as well as enhancing their use of Unix. Most users discover these capabilities in …

Read the complete description

Description

Prerequisites:

Delegates must have a good working knowledge of the Unix system. This can be gained by attending the UNIX Fundamentals course. Some practical understanding of programming concepts is also required. Typically, delegate skills will include a working knowledge of UNIX commands and utilities, proficiency in using a generic UNIX file editor, preferably vi, and familiarity with programming concepts, such as batch processing, loops, decision-making constructs.

Course Description:

Regular users of UNIX know that using advanced commands, shell features and shell scripts, improves efficiency and productivity as well as enhancing their use of Unix. Most users discover these capabilities in an ad-hoc and inefficient way, learning by trial and error and without understanding the concepts behind the features they use. This course focuses on the capabilities of the UNIX shell and the utilities commonly used in the development of shell scripts, interpreted programs.

The course is run using the Korn shell, a superset of the original UNIX Bourne shell, which is rapidly becoming the shell of choice for most users. Korn-only features are highlighted at each stage, making this course suitable for users of either shell. Having said that, those that use BASH (typically on Linux) should consider attending the Bash Shell Programming course instead.

The course concentrates on the common approach to the variants of UNIX while looking at some specific areas of various systems and shells, and is particularly suitable for companies which take a multi-vendor open systems view, and is applicable to all flavours of Unix including Linux, HP-UX, UnixWare, Solaris, AIX, etc. The platform used for practical exercises is Linux.

This course includes the following modules:

Introduction

  • What is a shell?
  • Types of shell

Review

  • Redirection and pipes
  • Wildcards
  • Creating shell scripts
  • The .profile file
  • Grouping commands and background execution

Overview

  • Tilde expansion
  • The whence command
  • Quoting; Using aliases
  • The ENV file
  • Here documents
  • Job control

Variables

  • Setting and getting variables
  • Using ${} and $()
  • Exported, read only and predefined variables
  • Length of variables

Parameters

  • Positional parameters
  • Counting parameters
  • Using shift
  • Parameters and set

Making Decisions

  • Exit status
  • If-then
  • If-then-else
  • If-then-elif-then-else
  • Tests
  • The case statement
  • Logical tests
  • More pattern matching

Loops

  • The while and until loops
  • The for loop
  • Break and continue
  • The select command
  • I/O redirection and loops
  • The getopts command

Arithmetic in the Shell

  • Declaring integer variables
  • Operators
  • The let keyword
  • Making arithmetic tests
  • Using other bases

Functions

  • Writing functions
  • Return values from functions
  • Autoload
  • Local versus global variables
  • Listing and removing functions

Debugging in the Shell

  • Setting the xtrace option
  • The trace prompt
  • Tracing functions
  • Traps

Handling Arrays

  • Accessing elements
  • Setting elements
  • Counting the elements in an array

Professional Scripts

  • Organising project files
  • Enhancing script behaviour with getopts

More Complicated I/O

  • Putting files onto file descriptors
  • Read and print revisited
  • Co-processes

Introduction to sed and awk

  • Simple instructions
  • Script files
  • Regular expressions
  • Addressing in sed
  • Grouping commands in sed
  • The main awk loop
  • Referencing fields
  • Predefined awk values
  • Variables, operators

For online live training advice please visit our Learning Advice Centre on our website. Be sure to follow us on Twitter to receive special course offers, news and updates!

Reviews

There are no reviews yet. Submit your review and help other people make the right choice. As a thank you for your effort we will donate £1.- to Stichting Edukans.

In-company offer

Ask for a quote on a customised training course.
Maximum 3 relevant providers will directly respond.

More courses within this subject:

Compare 36,003 training courses in subjects like HP (Hewlett Packard)

Subscribe to our newsletter?

Receive news, tips, articles, interviews and education on personal development each month.

Sign up to create your own Learning Lists.

Not for humans