~kris/dots

srice

ref: 75870dc6ce1e524c46a85157489f839161c9607c srice/.local/bin/crossword -rwxr-xr-x 221 bytes
75870dc6 — Kris Yotam add cw symlink for wallpapermenu (short name matching its own docs) 3 months ago
                                                                                
1
2
3
4
5
6
#!/usr/bin/env bash
# crossword -- pattern match, _ = unknown letter
# Usage: crossword "c_t" -> cat, cot, cut, ...
pattern="${1:?Usage: crossword 'c_t'}"
regex="^${pattern//_/.}$"
grep -ix "$regex" /usr/share/dict/words