First page
Back
Continue
Last page
Overview
Using
awk
awk
programs are data-driven
awk
rules contain a pattern and an action in curly braces
pattern
{
action
}
The action is taken on any line matching the pattern
awk '/bash/ { print }' /etc/passwd
awk '/[2-5]+/ { print }' /etc/inittab