May 2018
Beginner
332 pages
7h 28m
English
The following are different ways to use awk:
$ awk 'pattern' filename
$ awk '{action}' filename
$ awk 'pattern {action}' filename
As seen previously, the awk instruction consists of patterns, actions, or a combination of both.
Actions will be enclosed in curly brackets. Actions can contain many statements separated by a semicolon or a newline.
awk commands can be on the command line or in the awk script file. The input lines could be received ...