Korn and Bash Shell Programming

COURSE OUTLINE:

Description

Learn effective methods to create and use KornShell and Bourne Again SHell (bash) scripts and utilities. Shell scripts are often the key to becoming a productive AIX or Linux system administrator. During this course you will write simple programs that demonstrate your ability to write shell scripts in either an AIX or Linux environment.

Basic programming concepts are not taught in this course.

Audience

This intermediate course is for experienced system administrators, programmers, application developers, and end users.

Prerequisites

  • AIX Basics (AN10G) or
  • Linux Basics and Installation (LX020) or (QLX02) or
  • Linux Basics and Installation(QLXA2) or
  • Linux Basics and Installation - Lite (QLXL3)

or

  • Understand the programming fundamentals of variables and flow control concepts, such as repetition and decision, or
  • Have working knowledge of UNIX or Linux,including the use of the vi editor, manipulating files and directories, basic variables, piping and redirection, and the find and grep commands.

Learning Objectives

  • Distinguish Korn Shell and Bash Shell specific features
  • Use utilities such as sed and awk to manipulate data
  • Understand system shell scripts, such as /etc/shutdown
  • Write useful shell scripts to aid system administration

  • Basic shell concepts
  • Shell variables and positional parameters
  • Flow control in a shell script
  • Testing of return codes and traps
  • Functions and typeset
  • Shell features such as arithmetic and string handling
  • Using regular expressions
  • Using grep, sed, awk and other AIX utilities