mirror of https://github.com/E-Almqvist/hsf
parent
dcb1f2585d
commit
a239d34a80
@ -1,11 +1,8 @@ |
|||||||
#!/usr/bin/bash |
#!/usr/bin/bash |
||||||
|
|
||||||
list=/usr/share/dict/words |
words=/usr/share/dict/words |
||||||
|
|
||||||
words=$(cat $list | grep -E '^(\w{5})$') |
thing=$(ruby calc.rb $1 $2) |
||||||
echo $words > fivewords.txt |
|
||||||
|
|
||||||
for word in $words |
echo $thing |
||||||
do |
cat $words | awk '{print tolower($0)}' | grep -E '${thing}(\w+)' |
||||||
|
|
||||||
done |
|
||||||
|
Loading…
Reference in new issue