Guest User

Untitled

a guest
Aug 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Example: lKJjF7cP9V-6GcNOJQJX9
  4. function pw() {
  5. string=$(LC_ALL=C tr -dc "a-zA-Z0-9" < /dev/urandom | head -c 20)
  6. echo ${string:0:10}-${string:10:10}
  7. }
Add Comment
Please, Sign In to add comment