Randomly generated 10 8-bit password shell scripts
1. First Capital Letter
2. Middle six-digit alphanumeric random mixing
3. Eighth place [0-9]
#!/bin.bash for
i in {1..10}
do
a= ' head-c 500/dev/urandom | tr-dc a-za-z | tr [A-z] [a-z]|head-c 1 '
b= ' Head-c 500/dev/urandom | TR-DC A-z0-9a-z | Head-c 6 '
c= ' echo $RANDOM |cut-c 2 '
echo $A $b$c
done
--------------------------------
#!/ Bin.bash for
i in {1..10}
do
a= ' head-c 500/dev/urandom | tr-dc-A-Z |head-c 1 '
#随机生成500字符 | Only Capital Letter | take One character
b= ' head-c 500/dev/urandom | tr-dc [: alnum:]| head-c 6 '
#随机生成500字符 | Take English letters and figures, that is, 0-9, A-Z, a-z| take 6-bit
c= ' echo $RANDOM $random|cut-c 2 '
#取第二位随机数字, the first randomness is not high most is 1 or 2, so take second place.
echo $A $b$c done
The above mentioned is the entire content of this article, I hope you can enjoy.