Concentrika poppy

About us

UNIX Korn shell programming

 

About the course

The course is intended for those who need to find out how to enrich their UNIX environments with shell programming. It is of great benefit to administrators who need to automate system inspection and consequent action. Implementers and developers need to know how to bed their applications and databases into the operating system environment and will find it very useful to be able to write self-logging job packs.

A real-world view of the training is adopted, to take the delegate past the training lab and into the world of business computing.

Our workshops often use security contexts as this gives a valuable insight into intrusions that you may be a victim of and is a great way to learn the system. We assume all our clients will find the knowledge a tremendous value-added to the basic training and will treat it responsibly.

Prerequisites

Delegates must have attended our introduction to Unix course, or be at a similar level of skill. You should be comfortable logging into Unix and running Unix commands from the terminal prompt, supplying options and arguments as required, redirecting output and so forth. You should also have a fair aptitude for computer programming generally. The system editor used on the course is vi. Delegates are expected to be able to create and amend text in vi.

Who should attend

  • Unix system administrators
  • Staff supporting applications on Unix platforms
  • Programmers who need to learn the shell to support the running of their applications
  • Database administrators advancing their Unix skills
  • Anyone wishing to interrogate files on a Unix machine with a high degree of automation
  • Specialists supporting 3rd party Unix scripts

Duration:

3 days

1. Introducing the shell

Introduction
The Korn shell
STDIO and redirection
Pipes
Variables
Metacharacters
Command substitution
The environment file
Command line editing
Job control
Aliasing commands
Filename completion

5. Creating and using menus

The select statement
Echo menus

9. Commands and features

The wait instruction
The eval command
Signal trapping
The “here document”
Using file descriptors

2. Execution methods

Executing shell scripts
Running programs in the current shell
Debugging features

6. Variable and arithmetic routines

Variable control
Parameter expansion modifiers
Arrays
Evaluation of an expression
Korn shell math options
The RANDOM variable

10. Regular expressions

The regular expression toolkit
First and last column pinning
Repeat match
Single position marker
Saving matched characters

3. Passing values

Positional parameters
Reserved parameters
Shifting parameters
The read instruction

7. Repetitive actions

The while loop
Compound statements and file I/O
The for loop
Parsing command line arguments

11. Introduction to SED and AWK

Invocation methods and fixed logic
Awk commands – syntax and layout
Patterns and actions
Awk variables
The if statement
Awk scripts
Math
Introduction to the stream editor

4. Testing for conditions

The if instruction
Other testing syntax
Concatenated command line program calls
Case statement

8. Functions

Parameter passing
Exit codes

 

 

 

 

 

 

 

 

 

Courses
schedule
Contact us