Site Sections => About Us | Consultancy | Training | Software | Publications | Open Source | Support | Open Standards | FAQ | Jobs
Site Style Info

Unix Shell Programming — A 2-Day Course

Synopsis

This course is designed to give delegates practical experience in developing and writing shell scripts. Most of the built-in Korn shell commands are introduced together with the main program control structures.

The delegates will practise:

  • 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
  • Developing menu-driven shell scripts

Course Objectives

On completion of the course the delegate will have a good working knowledge of how to manipulate the Shell as an environment interface and how to fully utilise the Shell programming language. This course uses the Korn Shell.

Suitable for

  • Personnel who need to know the Shell programming language to be able to carry out their daily work
  • Programmers, administrators and support personnel who need to understand existing shell scripts, automate procedures and write their own utilities

Prerequisites

  • Completion of Unix Introduction course or equivalent knowledge
  • Some programming experience may also prove advantageous

Publicly scheduled dates, locations, and prices

Central London — £695 (+VAT)

  • 22–23 May 2008
  • 2–3 Jun 2008
  • 12–13 Jun 2008
  • 10–11 Jul 2008
  • 31 Jul–1 Aug 2008
  • 4–5 Aug 2008
  • 21–22 Aug 2008
  • 11–12 Sep 2008
  • 15–16 Sep 2008
  • 2–3 Oct 2008
  • 23–24 Oct 2008
  • 27–28 Oct 2008
  • 13–14 Nov 2008
  • 27–28 Nov 2008
  • 1–2 Dec 2008
  • 18–19 Dec 2008

Manchester — £695 (+VAT)

  • 12–13 Jun 2008
  • 10–11 Jul 2008
  • 4–5 Sep 2008
  • 6–7 Nov 2008

Bristol — £695 (+VAT)

  • 26–27 Jun 2008
  • 18–19 Sep 2008
  • 30–31 Oct 2008
  • 11–12 Dec 2008

Birmingham — £695 (+VAT)

  • 15–16 May 2008
  • 17–18 Jul 2008
  • 11–12 Sep 2008
  • 23–24 Oct 2008

Leeds — £695 (+VAT)

  • 22–23 May 2008
  • 31 Jul–1 Aug 2008
  • 25–26 Sep 2008
  • 20–21 Nov 2008

Edinburgh — £695 (+VAT)

  • 3–4 Jul 2008
  • 11–12 Sep 2008
  • 6–7 Nov 2008

Contents:

Unix Command Review

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

Getting Started

  • What is a shell script?
  • Development guidelines
  • Creating and editing shell scripts
  • Naming and storing shell scripts
  • Executing shell scripts

Using Quotes

  • Special characters
  • Use of the backslash character
  • Single and double quotes
  • Backquotes - the command substitution character

Using Variables

  • Environment variables
  • User-defined variables
  • The variable substitution character
  • Manipulating and assigning values to variables
  • Integer variables and the expr command

Handling Run Time Input

  • Writing generic scripts
  • User interaction and the read command
  • Command line arguments and related variables
  • The shift command

Condition Testing

  • The if-then-elif-else statement
  • Testing strings
  • Integer tests
  • Filename tests
  • Exit status testing

Loop Constructs

  • The while loop
  • The until loop
  • The for loop
  • The while true and until false loops
  • Loop control commands

Multi-Branch Decisions

  • The case statement
  • Patterns and actions
  • Menu construction

Interrupt Handling

  • Interrupt signals
  • The trap command
  • Abnormal termination of scripts

Additional Features and Facilities

  • Scope of variables
  • Default and substitute variables
  • The && and || constructs
  • Functions
  • Background loops and loop redirection
  • Here Documents

Unix training UK enquiries

UK Training enquiries and feedback form.

Unix training UK prices

For publicly scheduled training (individual places), see our UK training schedule.

In-house training for company groups is charged at a daily rate per group — see our In-House UK Training Guidelines.

Publicly Scheduled Training Locations

We currently run public training courses in the following locations:

  • London, UK
  • Leeds, West Yorkshire, UK
  • Birmingham, West Midlands, UK
  • Carshalton, Surrey, UK
  • Chester, North West, UK
  • Coventry, West Midlands, UK
  • Edinburgh, Scotland, UK
  • Glasgow, Scotland, UK
  • Harwell, Oxfordshire, UK
  • Manchester, North West, UK
  • Milton Keynes, Buckinghamshire, UK
  • Newark, Nottinghamshire, UK
  • Reading, Berkshire, UK
  • Slough, Berkshire, UK
  • Stevenage, Hertfordshire, UK
  • Wakefield, West Yorkshire, UK
  • Wokingham, Berkshire, UK

Most UK public training courses are available on a monthly basis.

Please see the individual course outlines or our public training schedule for details.

In-house (on-site) training locations

We deliver in-house courses at client premises and/or training facilities in any part of the world which is practically and commercially accessible.

Our In-house training guidelines outline our basic requirements and our UK pricing structure. To estimate costs for training in other countries, simply convert to your local currency and then make a rough calculation of our tutor's costs for travelling to and staying at your location.


West Yorkshire Office

GBdirect Ltd
Training Division
Bradford Design Exchange
34 Peckover Street
BRADFORD
BD1 5BD
West Yorkshire
United Kingdom

training@gbdirect.co.uk

Training: 0800 651 0338
General: +44 (0)870 200 7273
Finance: +44 (0)1353 615 174

Please call between 0900 and 1700 (UK time) on Monday to Friday


South East Regional Office

GBdirect Ltd
Training Division
18 Lynn Rd
ELY
CB6 1DA
Cambridgeshire
United Kingdom

training@gbdirect.co.uk

Training: 0800 651 0338
General: +44 (0)870 200 7273
Finance: +44 (0)1353 615 174

Please call between 0900 and 1700 (UK time) on Monday to Friday


Please note:
Non-training enquiries should be directed, initially, to our UK national office in Bradford (West Yorkshire), even if the enquiry concerns services delivered in London or South/East England. Clients in London and the South East will typically be handled by staff working in the London or Cambridge areas.