diff options
author | June McEnroe <june@causal.agency> | 2021-12-08 11:31:18 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-12-08 11:31:18 -0500 |
commit | cb493d08e36a496439ad4056d2ea7c16e2c84132 (patch) | |
tree | de343199bedb682f1951480bf964f6b96dd2370d | |
parent | Solve day 7 part 2 (diff) | |
download | aoc-cb493d08e36a496439ad4056d2ea7c16e2c84132.tar.gz aoc-cb493d08e36a496439ad4056d2ea7c16e2c84132.zip |
Solve day 8 part 1
Diffstat (limited to '')
-rw-r--r-- | 2021/day08-1.sh | 2 |
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 |