m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/awk.md
diff options
context:
space:
mode:
Diffstat (limited to 'awk.md')
-rw-r--r--awk.md12
1 files changed, 12 insertions, 0 deletions
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).