diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:49:22 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:49:22 -0500 |
| commit | f8d09c5cfd6d1d9595b64547dc9d29c63e40c5f2 (patch) | |
| tree | 0dd9cfa47cfa0bd4d57d7789439cc86afbbdfa85 /scripts/mismatch | |
| parent | 29b1c791f6e319cdab828cee5f491ca1c38e41d1 (diff) | |
Moved .local/bin to scripts
Diffstat (limited to 'scripts/mismatch')
| -rwxr-xr-x | scripts/mismatch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/mismatch b/scripts/mismatch new file mode 100755 index 0000000..38776bc --- /dev/null +++ b/scripts/mismatch @@ -0,0 +1,11 @@ +#!/bin/sh + +DICTFILE=/usr/share/dict/words + +[ -z $1 ] && words=$(< /dev/stdin) || words=$1 + +for word in $words +do + [ -z "$(grep -i "\b$word\b" $DICTFILE)" ] && echo $word +done + |
