March 2018
Beginner to intermediate
416 pages
9h 24m
English
The syntax of the awk command with an action only is as follows:
If you omit the pattern and give the action statement (AWK commands), then the given action is performed on all input lines, for example:
$ awk '{ print $1 }' empinfo.txt JackJaneEvaamitJulie
In the given example, all employee names are printed on the screen as $1, representing the first field of each input line.
Read now
Unlock full access