diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2023-01-19 19:42:29 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2023-01-19 19:42:29 -0500 |
| commit | 1135ed7b98574797f6e6b99eb1604d42afff5059 (patch) | |
| tree | d295236c3e1d2c80bf4a1ff39bafacb20adf496a /.local/bin/mismatch | |
| parent | 26334cc3cf49a3e1afb1eb5a40599bb97cc3b5f1 (diff) | |
| parent | 56919b86e5e8612e3cf432eb5b9a110f4526f0eb (diff) | |
Merge branch 'macOS' of github.com:JacobMcDonnell/dotfiles into macOS
Diffstat (limited to '.local/bin/mismatch')
| -rwxr-xr-x | .local/bin/mismatch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/mismatch b/.local/bin/mismatch new file mode 100755 index 0000000..2987b2f --- /dev/null +++ b/.local/bin/mismatch @@ -0,0 +1,12 @@ +#!/bin/sh + +DICTFILE=/usr/share/dict/words + +[ -z $1 ] && words=$(< /dev/stdin) || words=$1 + +for word in $words +do + echo "Word: $word" + [ -z "$(grep -i "\b$word\b" $DICTFILE)" ] && echo $word +done + |
