Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # example usage
  4. #
  5. # > random_password 10
  6.  
  7. if [ $# -lt 1 ]; then
  8. echo "This command requires an integer for the password length"
  9. else
  10. echo -n "password: "; base64 /dev/urandom | head -c $1
  11. fi
  12.  
  13. echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement