master
E. Almqvist 3 years ago
parent df74e1f693
commit b69d77a242
  1. 6
      prog2/wordle/thing.sh

@ -5,5 +5,7 @@ words=/usr/share/dict/words
thing=$(ruby calc.rb $1 $2)
echo $thing
cat $words | awk '{print tolower($0)}'
#| grep -E '${thing}(\w+)'
fivewords=$(cat $words | awk '{print tolower($0)}' | grep -E '^[[:alpha:]]{5}$')
echo $fivewords
#| grep -E '\b${thing}'

Loading…
Cancel
Save