[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
7.1.1 Regular Expressions as Patterns Using regexps as patterns. 7.1.2 Expressions as Patterns Any expression can be used as a pattern. 7.1.3 Specifying Record Ranges with Patterns Pairs of patterns specify record ranges. 7.1.4 The BEGIN
andEND
Special PatternsSpecifying initialization and cleanup rules. 7.1.5 The Empty Pattern The empty pattern, which matches every record.
Patterns in awk
control the execution of rules--a rule is
executed when its pattern matches the current input record.
The following is a summary of the types of patterns in awk
:
/regular expression/
expression
pat1, pat2
BEGIN
END
awk
program.
(See section The BEGIN
and END
Special Patterns.)
empty