UNIX Shell Programming

Course:   SHELL
Duration:   3 Days
Level:   II
On our website at:   http://www.verhoef-training.com/courses/SHELL.html
 
Course Summary

This course provides experienced users of the UNIX/Linux Korn or Bash Shells with further insights into effective and efficient shell use. The student will be prepared to design, code, test debug, and execute structured Shell procedures making full use of the basic, as well as the more advanced features of these Shells.

Topics Covered In This Course

Introduction and Background Information

Review of Unix Concepts and Commands

  • Major Components of UNIX
  • The File System
  • Listing Directories
  • Creating Files
  • Displaying Files
  • Moving Around Directories
  • Redirection & Piping
  • Searching for a Pattern
  • Finding Files
  • User Security
  • Other Useful Commands

The Shell Environment

  • Variables
  • Exporting variables
  • Shell Interpretation
  • Quotes
  • Special Escape Characters
  • Recalling & Modifying Previous Commands

Simple Shell Scripts

  • 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 Utilities

  • New group
  • Cut and Paste
  • Comparing Files
  • Head and tail
  • Touching files
  • Grouping Commands
  • Typeset
  • Here Documents
  • Korn Shell Functions

Controlling Program Flow

  • Conditional Processing
  • Logical Constructs
  • Basic Structured Conditionals
  • Nesting Structured Conditionals
  • ELIF Statement
  • String Operators
  • Integer Operators
  • File Operators
  • Logical Operators
  • Case statement
  • Looping
  • The For Command
  • For Statement Without Word List
  • The While Loop
  • The Until Loop
  • While True Loop
  • Until False Loop
  • 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
  • Korn Shell Arrays
  • Random Variable
  • Korn Shell Menu System.
  • Programming Hints
  • Creating Efficient Shell Procedures

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
  • Program Control
  • Print Formatting
What You Can Expect

The course is highly interactive and consists of theory with plenty of hands on practical content. This course will provide programmers and UNIX Support Staff with the skills necessary to construct extensive UNIX shell scripts. By the end of the course, delegates will confidently be able to put together and maintain complex shell scripts.

Who Should Take This Course

Experienced programmers and support staff, who have some experience of UNIX based systems, and who will be implementing further applications and systems. The course is suitable for delegates, wishing to use the Korn shell, on all versions of UNIX. (e.g. AIX, Solaris, HPUX, Irix, Linux etc.).

Recommended Prerequisites

Attendees should have a good basic understanding of UNIX, gained through a UNIX: The Essentials course and at least three months practical experience. Knowledge of a standard UNIX editor will be required.

Training Style

Hands on.

Related Courses
Code Course Title Duration Level
PERL1
PERL Part 1 - BASICS
4 Days
I
Details
UNIXEP
UNIX/Linux: Essentials and Programming
5 Days
I
Details
UNIXE
UNIX/Linux: The Essentials
3 Days
I
Details
AIXADM1
AIX System Administration: Part One
3 Days
II
Details

Every student attending a Verhoef Training class will receive a certificate good for $100 toward their next public class taken within a year.

You can also buy "Verhoef Vouchers" to get a discounted rate for a single student in any of our public or web-based classes. Contact your account manager or our sales office for details.