⇤ ← Revision 1 as of 2022-05-21 16:09:32
Size: 324
Comment:
|
← Revision 2 as of 2023-04-03 12:55:31 ⇥
Size: 336
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
The core syntax of awk is `pattern { action }`. This page describes '''actions'''. | The core syntax of `awk(1p)` is `pattern { action }`. This page describes '''actions'''. |
Line 19: | Line 19: |
Awk Actions
The core syntax of awk(1p) is pattern { action }. This page describes actions.
Contents
Default Action
The default action is to print the entire record.
The following will print every line in a file:
awk '//' input-file