unixy scripts to help you solve that famous word puzzle game
gurg: fix regex problem when all clues
Zach DeCook 2022-04-28
parent 91eb3b0 · commit da493a8
-rwxr-xr-xgurg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gurg.sh b/gurg.sh
index 7c012e2..91499d7 100755
--- a/gurg.sh
+++ b/gurg.sh
@@ -9,6 +9,6 @@ alias lc="tr [:upper:] [:lower:]"
l2="$(echo "$2" | lc)"
cat - |
-grep -v "[$(echo $1|tr -d "$l2")]" |
+grep -v "[$(echo $1|tr -d "$l2")=]" |
grep -i "$(echo $2|tr [:lower:] .)" |
sh -c "$has"