rasplice2passwd/rasplice2passwd.sh

9 lines
418 B
Bash
Raw Normal View History

2017-03-06 15:01:16 +01:00
echo "Rasplice to Password hyperconverged-cloud enabled integration tool"
2017-03-06 15:23:18 +01:00
read -p "select minimum word lenght (press ENTER for default = 11): " lenght
read -p "select number for words to integrate (press ENTER for default = 4): " words
lenght=${lenght:-11}
words=${words:-4}
2017-03-06 15:01:16 +01:00
curl -s http://rasplice.contaminati.net/sproloquio.txt | grep -e "[^\ ]\{$lenght,\}" | shuf -n $words | sed 's/^\(.\)/\U\1/' | paste -sd ""