Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # example usage
- #
- # > random_password 10
- if [ $# -lt 1 ]; then
- echo "This command requires an integer for the password length"
- else
- echo -n "password: "; base64 /dev/urandom | head -c $1
- fi
- echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement