AIX Korn Shell Programming

AIX Korn Shell Programming

5 days @ £1,825.00 exc. VAT 

Course Code: AKSP

25 Years - The IT Training specialist

Upcoming Scheduled Events - next 12 months

Location Start Date Spaces Book
London 15 Jan 2018 Spaces StayAhead - Course Running Book
London 05 Mar 2018 Spaces StayAhead - Course Running Book
London 30 Apr 2018 Spaces StayAhead - Course Running Book
London 25 Jun 2018 Spaces StayAhead - Course Running Book
View Further Dates

Location Start Date Spaces Book
London 03 Sep 2018 Spaces StayAhead - Course Running Book
London 29 Oct 2018 Spaces StayAhead - Course Running Book

S6

AIX Korn Shell Programming Course Overview

IBM AIX Korn Shell Programming training course is designed to give delegates practical experience in developing and writing shell scripts. Most of the built-in shell commands are introduced together with the main program control structures. The course also gives practical experience using a range of IBM AIX tools to manipulate text and incorporate into AIX shell scripts.

The delegate will learn and acquire skills as follows:

  • Writing simple scripts to enhance basic command output
  • Using the various shell quoting mechanisms appropriately
  • Manipulating shell variables and user-defined variables in scripts
  • Implementing conditional execution facilities
  • Using the shell's built-in loop constructs where appropriate
  • Writing scripts to trap user interrupts
  • User defined Functions
  • Developing menu-driven shell scripts
  • Backing up and restoring files with tar
  • File compression
  • Scheduling background jobs with crontab and at
  • Comparing file contents
  • Splitting files
  • Identifying and translating characters
  • Review of regular expressions
  • Editing text files with sed
  • Pattern scanning and report generating with awk
  • Debugging awk scripts
  • Miscellaneous commands

Who will the Course Benefit?

Programmers, developers and system administrators who need to construct shell scripts using advanced text handling facilities.

The AIX Korn Shell Programming assumes knowledge of the AIX Operating System to the level covered in the AIX Basics course. Some programming experience may also prove advantageous.

Course Objectives

To provide the skills needed to develop and customise shell programs and to make effective use of a wide range of standard AIX programming and development tools.

Requirements

The AIX Korn Shell Programming course assumes knowledge of the AIX Operating System to the level covered in the AIX Basics course. Some programming experience may also prove advantageous.

Note

This 5-day course AIX Korn Shell Programming course combines the AIX Shell Programming and AIX Advanced Shell Programming Tools courses. If the dates allocated to this 5-day course are not suitable, then this course can also be booked by selecting dates from both the AIX Shell Programming and the AIX Advanced Shell Programming Tools courses. The Shell Programming course should be attended first and may start on either a Monday or a Thursday.

Pre-Requisite Courses

Follow-On Courses

NOTE: Course technical content is subject to change without notice.


AIX Korn Shell Programming Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: UNIX COMMAND REVIEW

  • Basic UNIX commands
  • Filename generation characters
  • Redirection and pipes

Session 2: GETTING STARTED

  • What is a shell script?
  • Development guidelines
  • Creating and editing shell scripts
  • Naming and storing shell scripts
  • Executing shell scripts
  • Exercise: Create and run a simple shellscript

Session 3: USING VARIABLES

  • Environment variables
  • Local variables
  • Assigning values to variables
  • Accessing variable values
  • Using quotes
  • Delimiting variable names
  • echo control sequences
  • Exercises: Use variables in shellscripts

Session 4: INTEGER ARITHMETIC

  • Using the expr command
  • Using the (( )) notation
  • Exercises: Use integer arithmetic in shellscripts

Session 5: HANDLING RUN TIME INPUT

  • The read command
  • Command line arguments and related variables
  • Exercise: Writing an interactive shell script

Session 6: CONDITION TESTING

  • The if-then-elif-else statement
  • String tests
  • Integer tests
  • Filename tests
  • Other test notations
  • Default and substitute variables
  • Exit status codes
  • Counting characters
  • Testing for numeric input
  • Exercise: Add validation to previous scripts

AIX Korn Shell Programming Training Course

Session 7: LOOP CONSTRUCTS

  • The while loop
  • The until loop
  • The while true and until false loops
  • The for loop
  • Loop control commands
  • Exercises: Enhance the previously written scripts with loop constructs

Session 8: MULTI-BRANCH DECISIONS

  • The case statement
  • Patterns and actions
  • Menu driven applications
  • Exercise: Develop and write a menu system

Session 9: FUNCTIONS

  • What is a function?
  • Function syntax
  • Exercises: Create and use functions

Session 10: INTERRUPT HANDLING

  • Interrupt signals
  • The trap command
  • Abnormal termination of scripts
  • Exercise: Adding traps to the menu script

Session 11: ADDITIONAL FEATURES

  • The exec command
  • The includes notation
  • Arrays
  • Here Documents
  • Exercise: Enhance scripts

AIX Korn Shell Programming Training Course

Session 12: BACKUP AND RESTORE UTILITIES

  • The tar command
  • Compression utilities gzip, bzip2, zip and compress
  • Exercise: Backing up and restoring files using tar
  • Exercises: Compressing files

Session 13: BACKGROUND JOB SCHEDULING

  • Scheduling jobs with the cron command
  • Scheduling jobs with the at command
  • Exercises: Running background jobs

Session 14: COMMANDS FOR COMPARING FILES

  • Compare two files with the cmp command
  • Compare two files with the comm command
  • Compare two files with the diff and sdiff commands
  • Compare large files with the bdiff command
  • Exercises: Identifying file differences

Session 15: SPLITTING FILES

  • The split and csplit commands
  • Exercises: Splitting files

AIX Korn Shell Programming Training Course

Session 16: IDENTIFYING AND TRANSLATING CHARACTERS

  • od - octal dump
  • Use cat to display non-printing characters
  • The expand and unexpand commands to convert between tab and space characters
  • The tr command for character translation
  • Exercises: Translating characters with tr

Session 17: REGULAR EXPRESSION NOTATION REVIEW

  • Standard regular expressions
  • Extended regular expressions

Session 18 THE STREAM EDITOR - sed

  • sed command line syntax
  • sed command processing
  • Pattern space
  • sed addresses
  • sed commands
  • Hold and get functions
  • Advanced flow control
  • Exercises: Text processing with sed

Session 19: INTRODUCTION TO THE PATTERN SCANNING UTILITY - awk

  • Introduction and command line syntax
  • The awk program structure
  • Operators
  • Simple patterns
  • Extended patterns
  • Special patterns (BEGIN and END)
  • Program variables: Built-in variables, User defined variables, Arrays
  • Mathematical operators
  • Displaying output with print and printf
  • Exercises: Create awk scripts to extract selected data from a file and generate reports

AIX Korn Shell Programming Training Course

Session 20: awk PROGRAM CONTROL STRUCTURES

  • Program control structures
  • The if construct
  • The while and do ... while constructs
  • The basic for construct
  • Associative array handling
  • Functions: Mathematical and string functions, The system function, The getline function, User defined functions
  • Exercises: Create an awk script using an program control structures and arrays

Session 21: awk DEBUGGING AWK SCRIPTS

  • Responding to Syntax errors
  • Responding to Logical errors

Session 22: MISCELLANEOUS TOOLS

  • bc (calculator)
  • fuser (testing for files in use)
  • getops (checking options passed to shell scripts)
  • printf (formatting screen output)
  • logger (script logging)
  • xargs (generating arguments for a command)
  • eval (re-evaluating variables)
  • Exercises: Using tools within a shell script
Home Let Us Call You Enquiry

Place A booking





Print Friendly



Course Reviews

The instructor was very clear and I learned a lot from him and the course as a whole. This has been one of the best courses so far and I hope my next one in September will be as good.

Phil - Operations - Finance - July 2017


The trainer was very patient and explained all of the topics in good detail. He was willing to provide additional help when I needed it.

Hannah - Junior Analyst Programmer - Utilities


The instruction was well paced, with good documentation and a good instructor. Would recommend to others.

Tony - Unix Systems Administrator


More Course Reviews....

Excellent organisation, training materials and perfect Trainer. The pace was very accurate for me.

Milan - software developer - IT




Book further course dates
StayAhead Locations

If the course you require is not scheduled at your preferred centre, please contact us on 020 7600 6116 or sales@stayahead.com to enquire if we can accommodate your venue requirements.


Quick Search...


New Search
Enquiry
StayAhead Promo 5


Oracle User Group - Membership Benefits

Oracle User Group - Membership Benefits

Course Certification

Our independent Oracle, Solaris & Red Hat Linux curriculums helps prepare delegates for official certification.

Programming, Java, Web Dev, SQL, NoSQL, MySQL & MariaDB

Linux, Red Hat, Oracle Linux, SUSE & LPI

UNIX, Solaris, AIX & HP-UX

UNIX 
AIX 
HP-UX 

GDPR, Business Analysis, ITIL & Prince2

See what our clients say . . .

Extremely happy with the course. The material are all well presented and tutor is just great, very knowledgeable and no questions left unanswered.

Zak - System Administrator - Professional Services - November 2017

More Reviews

+44 (0)20 7600 6116
Cookies Policy
Copyright © 2017 StayAhead Training Ltd
sales@stayahead.com