Created
January 9, 2015 13:55
-
-
Save FruitieX/3b2413dd6f229dddc6e8 to your computer and use it in GitHub Desktop.
This file contains 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
# generate 40 random passwords | |
for i in {1..40}; do < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16} >> openstackusers_pw.txt; echo "" >> openstackusers_pw.txt; done | |
# prefix generated passwords with username | |
sed '/./=' openstackusers_pw.txt | sed -e 's/^/testuser/; /./N; s/\n/ /' > openstackusers.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment