Thales Training & Consultancy
Search
Developing People for Success
THALES - Training & Consultancy
Email Thales Traing & Consultancy THALES - Training & Consultancy
Newsletter Sign-up
 
ILM Approved Courses Investor In People
Institute of IT Training
UNIX SHELL SCRIPTING
 
Book this Course Printer Friendly Version
Duration: 3 days (this course is available on an in-house or customised basis only)
Price: On Request
Locations Available:

 

Suitable For

Familiarity with the Unix command line is required, and specifically familiarity with Unix commands for copying, removing, renaming and moving files and directories. Delegates should be comfortable editing files with vi (preferred), dtpad, or similar.

Delegates will learn and develop the skills needed to write shell scripts that can be used to extend the user environment, or to execute automatically various system administration activities.

Objectives

By the end of the course delegates will be able to:· 

  • Describe the extent to which UNIX shell scripts can be used to extend and automate the functionality of the shell· 
  • Configure the shell environment· 
  • Create scripts that make use of variables and arrays· 
  • Use file input and output· 
  • Create scripts that can interact· 
  • Use conditions and loops· 
  • Develop robust scripts that have error traps· 
  • Use Sed, Awk, and Nawk
 

Course content

The Shells· 

  • Shell overview· 
  • Types of shell· 
  • Developing scripts· 
  • Executing and debugging

Shell Environment Files· 

  • profile· 
  • kshrc· 
  • root shell

Quotes And Aliases· 

  • Quotes· 
  • Aliases

Variables· 

  • Types and attributes· 
  • Setting, displaying and un-setting· 
  • Exporting· 
  • Exit status· 
  • Reserved variables· 
  • Typesetting· 
  • String manipulation· 
  • Arithmetic· 
  • Arrays· 
  • Positional parameters

Interacting With Scripts· 

  • echo and read· 
  • File input and output· 
  • Here documents

Conditional Constructs· 

  • If, then elif, else· 
  • Comparing numbers and strings· 
  • Testing files and Boolean tests· 
  • Nested ifs· 
  • Case construct 

Loops· 

  • For loops· 
  • Processing command line arguments· 
  • Processing filenames· 
  • Until· 
  • While· 
  • Continue and break

Select Functions· 

  • Function definition and scope· 
  • Variable scope

Traps· 

  • Signals· 
  • Trap definitions· 
  • Clearing traps

Regular Expression Review· 

  • Metacharacters· 
  • Selections and ranges· 
  • Character escaping· 
  • Command options

Sed· 

  • Printing· 
  • Deleting· 
  • Inserting and appending· 
  • Substituting

Awk And Nawk· 

  • Printing fields· 
  • Formatting print output· 
  • Conditions· 
  • Awk files· 
  • Begin and End· 
  • Variables· 
  • Loops
Management & People Development Training | Senior Management Development | Training Management Services | Information Technology Training
Technology Training | Health and Safety Training | Thales Case Studies

Home | About Us | Course Booking | Thales News | Site Map
Copyright © 2004 Thales Training & Consultancy. All rights reserved. Site by Fresh Egg Web Design & Search Engine Promotion