Old high school files. Lessson notes/codes/projects etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hsf/prog2/wordle/thing.sh

8 lines
211 B

#!/usr/bin/bash
words=/usr/share/dict/words
thing=$(ruby calc.rb $1 $2)
fivewords=$(cat $words | awk '{print tolower($0)}' | grep -E '^[[:alpha:]]{5}$')
echo $fivewords | sed 's/ /\n/g' | grep -E "^${thing}"