Skip to content

Instantly share code, notes, and snippets.

@rhowe
Created February 20, 2020 17:15
Show Gist options
  • Save rhowe/9bd7bca683c58a257fac19ff4336e0ce to your computer and use it in GitHub Desktop.
Save rhowe/9bd7bca683c58a257fac19ff4336e0ce to your computer and use it in GitHub Desktop.
AOC2019day4
#!/bin/bash
set -eu
seq ${1%-*} ${1#*-} \
| grep -E '(00|11|22|33|44|55|66|77|88|99)' \
| grep -cEv '(10|2[01]|3[0-2]|4[0-3]|5[0-4]|6[0-5]|7[0-6]|8[0-7]|9[0-8])'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment