![]() |
Introduction to AWK
Duration: 1 day |
Participants: Programmers, technical managers, and system and network administrators. |
Objectives:
Upon successful completion of this course you will be able to:
- Use awk to perform data selection and processing tasks. |
Overview: This course presents the full capabilities of awk, the pattern scanning and processing language. |
Prerequisites: Working knowledge of UNIX commands such as grep, cd, ls -l, rm, cp, mv, and cat; ability to use I/O redirection, pipes, and filename generation; and ability to create and modify a small file. Previous attendance at an introductory course on UNIX is recommended. |
Format: Lecture and discussion (50%) with programming exercises (50%). |
Topic Outline:
- awk Command Line Options and the awk Program - awk I/O Capabilities - Patterns REs Relational patterns Logical combinations and negation Ranges BEGIN and END - Use of awk Records, Fields, Strings, Escape Sequences - Print and Printf - User-Defined Variables - Built-In awk Variables - String and Arithmetic Expressions - Built-In awk Functions - Multi-Line Input or Output Records - Comments - Conventional Indentation and Formatting - Data Coercion - Flow of Control if else while for { } break continue next exit - Writing or Appending to a File - Pipelines between the awk Program and other UNIX Commands - One-Dimensional Arrays - Accessing Shell Positional Parameters within an awk Program |
|