Here is a script for generating random alphanumeric passwords:
#!/bin/bash # passwords.sh if [ $# != 2 ]; then echo "usage: $0 <length of passwords> <number of passwords> " exit 1 fi tr -cd '[:graph:]' < /dev/urandom | fold -w $1 | head -$2
Wojciech Jamrozy blogBlog about computer science, programming and linux
|
Here is a script for generating random alphanumeric passwords:
#!/bin/bash # passwords.sh if [ $# != 2 ]; then echo "usage: $0 <length of passwords> <number of passwords> " exit 1 fi tr -cd '[:graph:]' < /dev/urandom | fold -w $1 | head -$2
leave a reply