1-800-THE-TREE (1-800-843-8733)
TRAINING YOU CAN TRUST
 
 

Shell Programming: Hands-On

Shell Scripting Using Bash and KornShell
 
Course: 434   Type: Hands-On Training   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
  • Customize 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 post-processing. 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

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

Upcoming Dates

Mar 11 - 13, 2009
 New York
Mar 25 - 27, 2009
 Washington, DC (Reston, VA)
Apr 8 - 10, 2009
 Washington, DC (Rockville, MD)
Jul 8 - 10, 2009
 New York

For complete schedule, please visit www.learningtree.com
 
http://www.lerningtree.com/courses/434pf.htm
 
 
1-800-THE-TREE (1-800-843-8733)
TRAINING YOU CAN TRUST
 
 

Shell Programming: Hands-On

Shell Scripting Using Bash and KornShell
 
Course: 434   Type: Hands-On Training   Duration: 3 Days
 
 
Course 434 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
  • Customizing 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

  • Analyzing 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 . commands

Interacting with the Outside World

Manipulating files and redirecting data

  • Scripting file and directory management
  • Deciphering redirection order
  • Unraveling 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.lerningtree.com/courses/434pf.htm
 
 
1-800-THE-TREE (1-800-843-8733)
TRAINING YOU CAN TRUST
 
 

Shell Programming: Hands-On Tuition

Shell Scripting Using Bash and KornShell
 
Course: 434   Type: Hands-On Training   Duration: 3 Days
 
 

Course Tuition
$ 2,390 Standard Tuition
Tuition with a Savings Plan
$ 1,350 10-Day Pass
$ 1,670 Training Passport
$ 1,700 Premium-Pass
$ 2,200 Voucher 10-Pack
$ 2,155 Alumni Gold Discount
$ 2,124 Government Discount
 

 

Your Course Tuition Entitles You To...

  • Class participation
  • Team workshops
  • Use of in-class hands-on equipment
  • Comprehensive course materials
  • Morning and afternoon refreshments
  • Course Completion Certificate awarding Continuing Education Units
  • FREE participation in Professional Certification
  • FREE participation in College Credit programs (including related exams)
 
 

Tuition Savings Plans

Training Passport
  • 3 courses in 12 months
  • As little as $1,670 per course
  • Savings as much as 40%
  • Only $5,000
Premium Pass
  • 4 courses in 24 months
  • As little as $1,700 per course
  • Save as much as 45%
10-Day Pass
  • A NEW way to save on training
  • 10 days of training for one person
  • Save as much as $990 per course
  • Only $4,500
Training Vouchers
  • Save as much as $990 per course
  • Fully transferable
  • As low as $2,200 per course
Alumni Gold Discount Attend your first course and you'll receive a personalized Alumni Gold Discount card, entitling you to save as much as $305 on each course you take within the following 12 months. Take just one course each year and you'll be entitled to ongoing discounts...year after year!

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 tuition.

Enrolling is Easy and Flexible!

Enroll 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 enrollment. Pay after you've taken the course, and then only if you are 100% satisfied.

 
http://www.lerningtree.com/courses/434pf.htm