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 | 4ec751af8d46a350f6fa01887345300de8f9a938 (patch) | |
| tree | a9963e1c34e57c27d930f6e0f0d6eae9d4d706ef | |
| parent | Solve day 7 part 2 (diff) | |
| download | aoc-4ec751af8d46a350f6fa01887345300de8f9a938.tar.gz aoc-4ec751af8d46a350f6fa01887345300de8f9a938.zip | |
Solve day 8 part 1
| -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 |