From cb493d08e36a496439ad4056d2ea7c16e2c84132 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 8 Dec 2021 11:31:18 -0500 Subject: Solve day 8 part 1 --- 2021/day08-1.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 2021/day08-1.sh (limited to '2021') diff --git a/2021/day08-1.sh b/2021/day08-1.sh new file mode 100644 index 0000000..ef4866f --- /dev/null +++ b/2021/day08-1.sh @@ -0,0 +1,2 @@ +#!/bin/sh +sed 's/^[^|]*|//' | egrep -o '[[:<:]]([a-g]{2,4}|[a-g]{7})[[:>:]]' | wc -l -- cgit 1.4.1