From c06fcbfb2962efa5b58d9e50197c49602b99e672 Mon Sep 17 00:00:00 2001 From: Martin Chrzanowski Date: Sat, 27 Jul 2019 17:27:17 -0700 Subject: Add git bisect --- git.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + git bisect old + git bisect run -- cgit v1.2.3 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