Skip to content

Instantly share code, notes, and snippets.

@deanputney
Created January 8, 2022 03:32
Show Gist options
  • Save deanputney/0f65f8326e73f3a689414bac44e2319e to your computer and use it in GitHub Desktop.
Save deanputney/0f65f8326e73f3a689414bac44e2319e to your computer and use it in GitHub Desktop.
Distribution of letters in five letter words
$ cat /usr/share/dict/words | sed -nr '/^[a-z]{5,5}$/p' | grep -o . | sort | uniq -c | sort -r
4467 a
4255 e
3043 r
2801 o
2581 i
2383 s
2381 t
2368 l
2214 n
1881 u
1605 y
1546 c
1399 d
1323 h
1301 m
1293 p
1162 b
1102 g
882 k
685 w
661 f
466 v
250 z
189 x
163 j
84 q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment