Awk
Programming
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.
Introduction to awk
What
is awk and Why?
How awk Programs Work
Running awk Programs
Examples
Awk
Patterns
Summary
and Patterns
BEGIN and END
Expressions
String-Matching Patterns
Extended REs in awk
Range Patterns
Awk
Actions
Summary
of Statements
Expressions
Operators
Flow Control
More Flow Control
The next, break, continue, and exit statements
Built-in Variables
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
Awk
Functions
Built-In
Arithmetic Functions
Built-In String Functions
More String Functions
User Defined Functions
Local Variables
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
Awk Programming