m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--awk.md12
-rw-r--r--git.md8
2 files changed, 20 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).
diff --git a/git.md b/git.md
index e9bbbfe..851dae4 100644
--- a/git.md
+++ b/git.md
@@ -4,3 +4,11 @@
git config --global user.name "Name"
git config --global user.email "name@place.com"
+
+## `git bisect`
+
+ git bisect start
+ git bisect new
+ git checkout <some commit a while ago>
+ git bisect old
+ git bisect run <command that returns 1 on old, 0 on new>