From 0e828c95d17a89451709191e92a049bce05cc9db Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 9 May 2020 19:23:24 +0200 Subject: [PATCH] multiline | --- zen/tools/diceware.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zen/tools/diceware.sh b/zen/tools/diceware.sh index f28320e..700c971 100755 --- a/zen/tools/diceware.sh +++ b/zen/tools/diceware.sh @@ -22,12 +22,12 @@ WORDCOUNT=${1-$MOTS} # Download the wordlist # wget -nc -O ~/.diceware-wordlist http://world.std.com/%7Ereinhold/diceware.wordlist.asc 2> /dev/null # print a list of the diceware words -cat $MY_PATH/diceware-wordlist.txt | -awk '/[1-6][1-6][1-6][1-6][1-6]/{ print $2 }' | +cat $MY_PATH/diceware-wordlist.txt | \ +awk '/[1-6][1-6][1-6][1-6][1-6]/{ print $2 }' | \ # randomize the list order -shuf --random-source=/dev/urandom | +shuf --random-source=/dev/urandom | \ # pick the first n words -head -n ${WORDCOUNT} | +head -n ${WORDCOUNT} | \ # pretty print tr '\n' ' ' echo