#! /bin/sh

curl -s https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt -o eff_large_wordlist.asc
curl -s https://www.eff.org/files/2016/09/08/eff_short_wordlist_1.txt -o eff_short_wordlist_1.asc
curl -s https://www.eff.org/files/2016/09/08/eff_short_wordlist_2_0.txt -o eff_short_wordlist_2_0.asc
curl -s http://world.std.com/%7Ereinhold/diceware.wordlist.asc | egrep '^[1-6]{5}' > diceware.wordlist.asc
curl -s http://world.std.com/%7Ereinhold/beale.wordlist.asc | egrep '^[1-6]{5}' > beale.wordlist.asc

for filename in diceware.wordlist.asc beale.wordlist.asc eff_large_wordlist.asc ; do echo;echo $filename; for i in `seq 20`; do shuf -n 6 $filename  | awk '{print $2}' | paste -sd ' '; done; done > results.txt

for filename in eff_short*.asc ; do echo;echo $filename; for i in `seq 20`; do shuf -n 8 $filename  | awk '{print $2}' | paste -sd ' '; done; done >> results.txt

