Skip to content

Instantly share code, notes, and snippets.

@phase
Forked from earthgecko/bash.generate.random.alphanumeric.string.sh
Last active May 17, 2016 03:19
Show Gist options
  • Save phase/b42f143c1412d0db6ae52160b48ba2ee to your computer and use it in GitHub Desktop.
Save phase/b42f143c1412d0db6ae52160b48ba2ee to your computer and use it in GitHub Desktop.
shell/bash generate random string
#!/bin/bash
# bash generate random 5 character string)
cat /dev/urandom | tr -dc 'a-z' | fold -w 5 | head -n 1
@phase
Copy link
Author

phase commented May 17, 2016

https://github.com/phase/omgos - Name generated from this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment