Solaris 11 Shell and awk Scripting Training

Course #:SO116

Solaris 11 Shell and awk Scripting Training

This course teaches the Solaris 11 professional (user, systems administrator, application/system programmer) the techniques needed to develop advanced shell and reporting type procedures under Solaris 11. Techniques in the major shells will be shown. All Solaris 11 platforms support the techniques in this course.

Each participant will be able to use Solaris 11, awk, nawk, BASH and Korn shell commands to maintain collections of files, control usage of shell command scripts, and generate reports using the (n)awk facility.

COURSE DURATION

This course normally requires three (3) days, approximately 50 % lecture, and 50 % lab time.

COURSE PREREQUISITES

This is an advanced Solaris 11 course. It is assumed that participants either have attended the Solaris 11 Operating System Essentials course, or have equivalent experience with a Solaris 11 system.

Outline of Solaris 11 Shell and awk Scripting Training

Basics of Shell Scripting

  • Types of shell scripts
  • driver
  • complex
  • Available shells in Solaris 11
  • Developing a template
  • Adding documentation to shell scripts

Writing Shell Scripts

  • BASH and Korn Shell environment variables
  • User-defined variables
  • Substitution of variables
  • Command substitution in variables
  • Decision statements
  • Looping statement constructs
  • typesetting variables for output
  • typesetting integer and floating point variables

Writing Shell Scripts (continued)

  • the select construct (for menus)
  • using and defining functions
  • accessing files' records using pipes
  • handling signals with trap
  • defining and using indexed arrays

Writing Advanced (Korn) Shell Scripts

  • defining and using active variables
  • nameref variables (references)
  • defining and using associative arrays
  • accessing files' records directly with exec
  • special parameter/variable substitutions
  • parent / co-process communications
  • adding option processing in shell scripts
  • accessing socket level TCP/IP connections

Using the awk Utility to Generate Reports

  • awk utility calling techniques
  • Patterns and actions
  • Using the BEGIN and END patterns
  • Using awk built-in variables
  • Procedure-defined variables in awk
  • Formatted output using printf
We regularly offer classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.