0345 4506120

Shell Scripting (Korn, Bourne and BASH)

The course is highly interactive and consists of theory with plenty of hands on practical content. This course will provide programmers and UNIX / Linux Support Staff with the skills necessary to construct extensive Shell scripts. 

This course is designed for experienced programmers and support staff, who have some experience of UNIX or Linux based systems, and who will be implementing further applications and systems.

Learning Objectives

By the end of the course, delegates will be able to confidently put together and maintain complex shell scripts. The course covers Bourne, Korn and BASH scripting.

Pre-Requisites

The course is suitable for delegates wishing to use the Korn, Bourne or BASH shell on all versions of UNIX and Linux. (e.g. AIX, Solaris, HPUX, Red Hat, SuSE etc.).  The course comprehensively covers all three shells, but can focus on any one if required.

Course Content

UNIX & Linux Review
Major Components
The filesystem
Listing Directories
Creating Files
Displaying Files
Moving Around Directories
Redirection
Piping
Searching for a Pattern (grep)
Finding Files
User Security
Other Useful Commands

The Shell Environment
Shell Variables
Exporting variables
System Variables
The Back Quote
The Single Quote
The Double Quotes
The Backslash
Special Escape Characters
Recalling Previous Commands
Modifying Previous Commands

Shell Programming
Shell Scripts
Executing Shell Scripts
Passing Arguments To A Program
Positional Parameters
Special Shell Parameters
The Shift Command
Read Command
Expr Command
Korn Shell Arithmetic

Miscellaneous Commands
New Group
Cut and Paste
Comparing Files
Head and tail
Touching files
Grouping Commands
Shell Constructs
Typeset
Here Documents
Korn Shell Functions

Conditional Processing
Logical Constructs
The if Statement
Nesting if Conditionals
ELIF Statement
The Test Command formats
String Operators
Integer Operators
File Operators
Logical Operators
Case Statement

Conditional Looping
The For Command
For Statement Without Word List
The While Command
The Until Command
While True Command
Until False Command
The Break Command
The Continue Command

Additional Programming Topics
Shell Script Comments
The Exit Command
The Sleep Command
The Wait Command
The Set Command
The Unset Command
Special Variable Constructs
The Null Command
Signals used by Shell Procedures
Interrupt handling
Trace
Timing Command
getopts command
Korn Shell Arrays
Random Variable
Korn Shell Menu System
Programming Hints
Creating Efficient Shell Procedures
eval

The Stream Editor
The Stream Editor
Searching and Replacing Text
Deleting lines
Printing Lines
Edit Files

The Awk Utility
The awk utility
Operators
BEGIN and END
Arithmetic operators
Use of awk within a shell script

Privacy Notice

In order to provide you with the service requested we will need to retain and use your contact information in accordance with our Privacy Notice. If you choose to provide us with this information you explicitly consent to us using the information as necessary to provide the request service to you. If you do not agree please do not proceed to request the service from us.

Marketing Permissions

Would you like to receive our newsletter and other information on products and services which we think will be of interest to you by email. We will always treat your information with care and in accordance with our Privacy Notice. You are free to withdraw this permission at any time.

 

Our Customers Include