m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--awk.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/awk.md b/awk.md
index 12c7772..8e8499a 100644
--- a/awk.md
+++ b/awk.md
@@ -7,6 +7,8 @@
Program is ;-separated pattern-action statements.
/pattern/ { action }
+ # e.g. (apostrophes to not interpolate shell vars
+ awk '/tt/ { print $1 }' awk.md
`$0` is whole line, `$1`, `$2`, ... are fields separated by `FS` (by default,
whitespace).