From d20f9efbdda60019bac35849fa99dbb47d3c7551 Mon Sep 17 00:00:00 2001 From: Martin Chrzanowski Date: Sat, 27 Jul 2019 17:27:56 -0700 Subject: Add awk cheatsheet --- awk.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 awk.md diff --git a/awk.md b/awk.md new file mode 100644 index 0000000..12c7772 --- /dev/null +++ b/awk.md @@ -0,0 +1,12 @@ +# Awk + +## Basics + + awk program file + +Program is ;-separated pattern-action statements. + + /pattern/ { action } + +`$0` is whole line, `$1`, `$2`, ... are fields separated by `FS` (by default, +whitespace). -- cgit v1.2.3