0800 282 353 or +44 1372 364610
Productivity through Education®
 
 

Shell Programming: Hands-On

Shell Scripting Using Bash and KornShell
 
Course: 434   Duration: 3 Days
 
 

You Will Learn How To

  • Write Bash and KornShell scripts for improved productivity
  • Integrate all key language features: arrays, functions, pattern matching, I/O, branches, loops and variables
  • Improve speed by performing multifile handling and string manipulations without external tools
  • Launch and control additional processes
  • Wrap external file and text-handling tools within scripts
  • Customise and extend the user environment login scripts

Course Benefits

KornShell (ksh) and Bash have evolved into full-featured programming languages with efficient built-in modern constructs for superior string handling, decision making, arithmetic and postprocessing. This hands-on course provides the skills you need to write reusable, robust shell scripts to extend the user environment and automate complex administrative tasks.

Who Should Attend

Administrators, developers and other professionals using shell programming for improved productivity. Knowledge of UNIX or Linux at the level of Course 428, "UNIX Comprehensive Introduction", or Course 143, "Linux Comprehensive Introduction", is assumed.

Hands-On Training

Throughout this course, you write a series of Bash or KornShell scripts that build in complexity as you master each new construct. Instructor-led exercises include:
  • Creating loops and making decisions using case, while and if
  • Performing text-processing tasks using IFS and read
  • Breaking a large program into functions
  • Handling errors with default values
  • Handling unexpected events with trap
  • Manipulating multiple files

Related Courses

  • 396 UNIX and Linux Tools and Utilities
  • 431 Perl Programming Introduction
  • 594 Oracle Database 10g Administration
  • 315 Developing User Requirements
  • 319 Technical Writing Comprehensive Introduction

 
Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of X/Open Company, Limited.
  Shell Programming

Upcoming Dates

Live online classroom training.Attend highlighted events in person or live, online via Learning Tree AnyWareTM.

UK Dates

9-11 MayLondon
24-26 OctLondon

US East Coast Dates

11-13 AprWashington, DC*
23-25 MayWashington, DC*

*New York and Washington, DC Courses – Available online with a run time of 2pm to 9pm BST.

For AnyWare enrolments, please register at least 10 days prior to the start of the course.


For complete schedule, please visit www.learningtree.co.uk
 
http://www.learningtree.co.uk/courses/uk434.htm
 
 
0800 282 353 or +44 1372 364610
Productivity through Education®
 
 

Shell Programming: Hands-On

Shell Scripting Using Bash and KornShell
 
Course: 434   Duration: 3 Days
 
 
Course Content
 

Introduction and Overview

  • Role of shell scripting
  • Benefits of KornShell and Bash vs. other shells
  • Differences and similarities between bash, ksh88 and ksh93
  • Integrating scripts with external tools: grep, sed, awk and others
  • Customising the login environment

Bash and KornShell Scripting Fundamentals

Shell script elements

  • Commands and comments
  • Defining exit values

Conditional program execution

  • Applying if and case statements
  • Simplifying if logic with elif

Program loops and iteration

  • Conditional looping with while and until
  • Listing for loops

Testing files and directories

  • Analysing attributes
  • Checking file size and contents

Strings and patterns using [[ ]]

  • Comparing strings
  • Verifying the existence of a string
  • Pattern matching and special characters

Debugging

  • Redirecting standard error
  • set commands for debugging

Storing and Accessing Data

Positional parameters

  • Passing and accessing parameters
  • Setting and unsetting parameters
  • Manipulating parameters as groups

Shell variables

  • Defining environment and local variables
  • Specifying default values and error conditions

Arrays

  • Creating and indexing arrays
  • Processing array contents with special variables

Processing Data

Manipulating strings

  • Extracting substrings
  • Determining string length
  • Find and replace

Mathematics

  • Arithmetic for and while loops
  • Writing mathematical expressions: (( )), $(( )) and let

Modular Programming with Functions

Function basics

  • Functions vs. scripts
  • Parameters and variables

Creating a function library

  • Finding your library with PATH
  • Dot . and source commands

Interacting with the Outside World

Manipulating files and redirecting data

  • Scripting file and directory management
  • Deciphering redirection order
  • Unravelling the secrets of exec: opening and closing multiple files

Interacting with running processes

  • Handling errors
  • Defining post-termination actions such as notification, cleanup
  • Handling and sending signals: trap and kill

Accessing network servers

  • Connecting to a network server
  • Exchanging data with a network server

Creating "Production Quality" Scripts

Ensuring environmental control

  • Checking and modifying environment variables
  • Using getopts to process command line options

Handling user interactions

  • Setting up error processing
  • Employing select to create a menu interface
  • Processing keyboard input
 
http://www.learningtree.co.uk/courses/uk434.htm
 
 
0800 282 353 or +44 1372 364610
Productivity through Education®
 
 

Shell Programming: Hands-On

Shell Scripting Using Bash and KornShell
 
Course: 434   Duration: 3 Days
 
 
Course Fees
£ 1,565Standard Fee
Fee with a Savings Plan
£ 1,2252-Course Passport
£ 1,0853-Course Passport
£ 1,0004-Course Passport
£ 1,600Voucher 10-Pack

Your Course Fee Entitles You To...

  • Class participation
  • Team workshops
  • Use of in-class hands-on equipment
  • Comprehensive course materials
  • Morning and afternoon refreshments
  • Course Completion Certificate
  • FREE participation in the Learning Tree Professional Certification Programmes (including related exams)
 
 

Savings Plans

2-Course Passport
  • 2 Courses in 12 months for £2,450
  • As little as £1,225 per course
  • Savings up to 45% per course
3-Course Passport
  • 3 Courses in 24 months for £3,250
  • As little as £1,085 per course
  • Savings up to 50% per course
4-Course Passport
  • 4 Courses in 24 months for £4,000
  • As little as £1,000 per course
  • Savings up to 55% per course
Training Vouchers
  • Save as much as £675 per course
  • Fully transferable
  • As low as £1,600 per course
* Exact savings may vary depending on courses selected.

Your Guarantee of Satisfaction

Unless you feel 100% satisfied that Learning Tree delivered even more than you expected, there is no fee for your course attendance. Our Guarantee of Quality lets you experience the value of the course - and then pay only if you feel the course was well worth the fee.

Enrolling is Easy and Flexible!

Enrol by phone or online. If your plans change, just let us know and, without a fee, you can transfer to another course or cancel your enrolment. Pay after you've taken the course, and then only if you are 100% satisfied.

 
http://www.learningtree.co.uk/courses/uk434.htm