Course Description:
The objective
of this course is to develop the programming skills required to
write applications using the awk programming language.
Audience:
Unix system application developers, administrators, and advanced
users.
Prerequisites:
The ability to write programs in a high level language (such
as C or shell) is very helpful in completing the lab exercises
and understanding the lectures. A good working knowledge of the
UNIX environment is necessary.
Suggested Supplemental
Reference: Sed & Awk, O'Reilly & Assoc., ISBN 0937175595
Course Contents
Chapter 1: Introduction to awk
What
is awk and Why?
How awk
Programs Work
Running
awk Programs
Examples
Chapter 2: awk
Patterns
Summary
and Patterns
BEGIN and
END
Expressions
String-Matching
Patterns
Extended
REs in awk
Range Patterns
Chapter 3: awk
Actions
Summary
of Statements
Expressions
Operators
Flow Control
More Flow
Control
The next,
break, continue, and exit statements
Built-in
Variables
Chapter 4: awk
Input andOutput
Formatted
Output with printf
Output into
Files
Output into
Pipes
Input Separators
Multi-Line
Records
The getline
Function
More getline
Command
Line Parameters
Chapter 5: awk
Functions
Built-In
Arithmetic Functions
Built-In
String Functions
More String
Functions
User Defined
Functions
Local Variables
Chapter 6: awk
Arrays
Arrays
Associative
Arrays
The Array
for Statement
The Array
in Operator
Deleting
Array Elements
The Split
Function
Multi-Dimensional
Arrays
Command
Line Parameter Passing