training

 

 

Solaris 11 Shell and awk Scripting – 3 Days

Course Description

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.

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.

Objectives

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.

Outline   

                   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

MindIQ.com

Print Friendly, PDF & Email