unixy scripts to help you solve that famous word puzzle game
gurg: fix regex problem when all clues
| -rwxr-xr-x | gurg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |