Created
January 25, 2016 15:33
-
-
Save spacetrack/a70a695b0d9a495f1520 to your computer and use it in GitHub Desktop.
print 3 * 4 random chars, exclude upper i "I", upper and lower o "O", lower L "l"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# print 3 * 4 random chars, exclude upper i "I", upper and lower o "O", lower L "l" | |
for i in 1 2 3; do cat /dev/urandom | tr -cd 'A-HJ-NP-Za-kmnp-z0-9' | head -c4; if [ "$i" -eq "3" ]; then echo; else echo -n "."; fi; done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment