forked from axiom-team/astroport
| \
This commit is contained in:
parent
0e828c95d1
commit
9a7a2c5cfe
|
@ -6,12 +6,12 @@ WORDCOUNT=${1-$MOTS}
|
||||||
# Download the wordlist
|
# Download the wordlist
|
||||||
# wget -nc -O ~/.diceware-wordlist http://world.std.com/%7Ereinhold/diceware.wordlist.asc 2> /dev/null
|
# wget -nc -O ~/.diceware-wordlist http://world.std.com/%7Ereinhold/diceware.wordlist.asc 2> /dev/null
|
||||||
# print a list of the diceware words
|
# print a list of the diceware words
|
||||||
cat ./diceware-wordlist.txt |
|
cat ./diceware-wordlist.txt | \
|
||||||
awk '/[1-6][1-6][1-6][1-6][1-6]/{ print $2 }' |
|
awk '/[1-6][1-6][1-6][1-6][1-6]/{ print $2 }' | \
|
||||||
# randomize the list order
|
# randomize the list order
|
||||||
shuf --random-source=/dev/urandom |
|
shuf --random-source=/dev/urandom | \
|
||||||
# pick the first n words
|
# pick the first n words
|
||||||
head -n ${WORDCOUNT} |
|
head -n ${WORDCOUNT} | \
|
||||||
# pretty print
|
# pretty print
|
||||||
tr '\n' ' '
|
tr '\n' ' '
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue