From aa148e2a7d531ec3402208096b31a81dda8a81b9 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 3 Nov 2019 22:40:16 +0100 Subject: Reminder about shell interpolation --- awk.md | 2 ++ 1 file changed, 2 insertions(+) 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). -- cgit v1.2.3