AWK Programming - UNX300

The objective of this course is to develop the programming skills required to write applications using the awk programming language.
Course ID: UNX300

Duration: 2 days

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.
Topics:

Introduction to awk

  • Introduction to awk
  • How awk Programs Work
  • Running awk Programs
  • Examples

Patterns

  • Summary and Patterns
  • BEGIN and END
  • Expressions
  • String-Matching Patterns
  • Extended REs in awk
  • Range Patterns

Actions

  • awk Actions
  • Expressions
  • Operators
  • Flow Control
  • More Flow Control
  • The next, break, continue, and exit statements
  • Built-in Variables

Input and Output

  • Formatted Output with printf
  • Output into Files
  • Output into Pipes
  • Input Separators
  • Multi-Line Records
  • The getline Function
  • More getline
  • Passing Parameters into a Script

Functions

  • Built-In Arithmetic Functions
  • Built-In String Functions
  • More String Functions
  • User Defined Functions
  • Local Variables

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
 

Call Toll-free 877-245-6815 or 303-416-3056 to set up your IT Training today.