Fundamentals of UNIX: Shell/awk Scripting
Course Number: 671-TP
Recommended Duration: 2 days
Intended Audience
UNIX computer professionals including users, system administrators and application/system programmers.
Course Overview
This course teaches the UNIX computer professional the techniques needed to develop advanced shell and reporting type procedures under UNIX. Techniques in the major shells will be shown. Note that all UNIX systems support all of the techniques in this course.
Objectives
Each participant will be able to use UNIX shell (common features, Korn ksh 88 and ksh 93) commands to maintain collections of files, control usage of shell command scripts, and generate reports using the awk facility.
Prerequisites
This is an advanced UNIX course. It is assumed that participants either have attended the Fundamentals course for Sun Solaris, IBM AIX, or HP-UX, or have equivalent system time and experience with the interactive shell(s).
Topics
-
Shell Scripting Common Features
-
Shell environment variables
-
User-defined variables
-
Substitution of variables
-
Looping statement constructs
-
Decision statements
-
Command substitution in variables
-
Using eval
-
Handling signals with trap
-
Writing Korn Shell Scripts
-
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 variables
-
The select construct (for menus)
-
Using and defining functions
-
Accessing files' records using pipes
-
Accessing files' records directly with exec
-
Special parameter/variable substitutions
-
Korn shell parent-child process communications
-
Defining and using arrays
-
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
-
If and for constructs
-
Re-direction of awk input and output
-
Defining and using arrays
-
Obtaining command line arguments with awk
-
Special awk signature lines
|