diff --git a/prog2/wordle/thing.sh b/prog2/wordle/thing.sh index f4c03a5..6bf0c83 100755 --- a/prog2/wordle/thing.sh +++ b/prog2/wordle/thing.sh @@ -3,9 +3,6 @@ words=/usr/share/dict/words thing=$(ruby calc.rb $1 $2) - -echo $thing fivewords=$(cat $words | awk '{print tolower($0)}' | grep -E '^[[:alpha:]]{5}$') -echo $fivewords -#| grep -E '\b${thing}' +echo $fivewords | sed 's/ /\n/g' | grep -E "^${thing}"