Customer Service or Enrol: 0800 282 353 or +44 1372 364610
 
Shell Programming: Hands-On
Shell Scripting Using Bash and KornShell
 
Course: 434   Type: Hands-On   Duration: 3 Days

Frequently Asked Questions

What is this course about?

This course provides a comprehensive introduction to shell programming using the KornShell (ksh). A shell is a command-interpreting language used in UNIX/Linux. The KornShell is the most powerful of the many available shells.

Of the other UNIX shells, some are closely related to the KornShell. The Bourne shell (sh) represents a subset of the KornShell; the BASH shell (the Bourne Again Shell) is also closely related to the KornShell but is not a perfect subset. The KornShell is POSIX- and SUS- compliant.

What is KornShell programming used for?

The KornShell is much more than a simple command interpreter. It can also serve as a scripting language, allowing you to write scripts to perform such tasks as customising your working environment and automating repetitive functions. Shell scripts are heavily relied on by systems and application administrators, and power users who need to perform repetitive but important tasks on a regular basis, especially if the tasks need to be performed on a number of different machines.

Who will benefit from this course?

The course is for people who want to learn to become experts at writing scripts using the KornShell. Shell scripting is most valuable for administrators, developers and power users who could benefit from automating some online tasks.

How much UNIX background do I need to get the most out of this course?

This course assumes that you:

  • Have experience with user-level UNIX commands such as ls, rm, cd, cp, and mv
  • Know how to perform simple file editing with a basic text editor such as vi or emacs, or use a GUI based editor

Some familiarity with the X Window System and basic UNIX networking commands is desirable but not absolutely necessary. Course 428, UNIX®: A Comprehensive Hands-On Introduction, or Course 143, Linux®: A Comprehensive Hands-On Introduction, provides a more than adequate background for this course.

I'm working with XYZ flavor of UNIX. Is this course for me?

In a word, yes! This course runs on Linux using David Korn's freely available, open source port of KornShell. The course content applies equally to Berkeley UNIXes (e.g., SunOS, Ultrix) and System V UNIXes, (e.g., HP/UX, AIX, Solaris, SCO.)

I don't work in a UNIX/Linux environment. Would this course be helpful to me?

Absolutely! One of the most interesting features of KornShell is its cross-platform compatibility. KornShell is used on a number of different operating systems, including Windows and OS/X. So if you need a robust, easy-to-learn scripting language for the Windows or OS/X environments, this course will be very useful to you.

How much time is spent on each topic?

ContentHours
Introduction and overview1.0
KornShell fundamentals6.0
Storing and accessing data4.0
Processing strings and arithmetic data4.0
Modular programming with functions3.0
Creating industrial-strength scripts 3.0
Text handling and Input/Output3.0
Times, including the workshops, are estimates; exact times may vary according to the needs of each class.

How much time is spent on exercises?

Approximately 50% of the 4-day course is spent on exercises. You create a script on the course's first day. As the content builds, the exercises extend in length and complexity.

Because KornShell is an interactive command interpreter, most of the material is presented hands-on with continuous interactivity.

Why would I choose shell scripting over some of the other scripting languages out there?

The strength of the KornShell is that it builds on skills you already have, so that you don't need to learn a new scripting language from scratch. Most UNIX users are already familiar with the KornShell and other UNIX regular expressions and tools. You can add some muscle to your current skills by learning to package these commands into shell scripts, and automate the whole process. This lets you avoid the learning curve involved with mastering a new language.

I've heard people talk about "UNIX programming." Is KornShell sometimes referred to in this way?

No. It's true that shell scripting with the KornShell is programming, and it does usually take place within a UNIX environment. But the end result of this work is a script, not a stand-alone, compiled application.

When people refer to UNIX programming they're usually talking about writing applications in a standard language (e.g., C, C++ or Java) to run within a UNIX environment.

How does this course relate to other Learning Tree courses?

Learning Tree offers a broad variety of related courses. Those interested in building further skills working with the UNIX operating system might try:

For information about working with Perl, consider:

 
request more info Salutation*:

First Name*:

Last Name*:

Job Title:

Company*:

Post Code*:

Country*:
   Codes
Office Telephone*:

Extension:

E-mail*:

* Required

A Learning Tree representative will contact you to follow up your request for information.

Save 55%

22 - 24 Oct, 2008
London
11 - 13 Feb, 2009
London
13 - 15 May, 2009
London
12 - 14 Aug, 2009
London

£ 1,395 - Standard Tuition
Savings Plans
£ 735 - 10-Day Training Pass
£ 915 - Flex-Training Passport
£ 1,000 - Short Course Vouchers
£ 1,255 - Alumni Gold Tuition

 
Customer Service or Enrol: 0800 282 353 or +44 1372 364610