summary refs log tree commit diff homepage
path: root/2021
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-12-08 11:31:18 -0500
committerJune McEnroe <june@causal.agency>2021-12-08 11:31:18 -0500
commitcb493d08e36a496439ad4056d2ea7c16e2c84132 (patch)
treede343199bedb682f1951480bf964f6b96dd2370d /2021
parentSolve day 7 part 2 (diff)
downloadaoc-cb493d08e36a496439ad4056d2ea7c16e2c84132.tar.gz
aoc-cb493d08e36a496439ad4056d2ea7c16e2c84132.zip
Solve day 8 part 1
Diffstat (limited to '2021')
-rw-r--r--2021/day08-1.sh2
1 files changed, 2 insertions, 0 deletions
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