AWK Process Continued

AWK Process Continued

1

INPUT

1st routine executed before any

input is read

2nd routine(main input loop);

executed for each input line.

Can have multiple pattern-

action statements

3rd routine executed after all input is read.

2

3

Previous slide Next slide Back to the first slide View Graphic Version

Notes:

To master awk programming, its important to understand how lines of text of data are processed.

Since the pattern-actions are performed sequentially, you can process data to a specific format; where it will satisfy subsequent pattern matches.