Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active October 21, 2015 09:48
Show Gist options
  • Save magnetikonline/9ea4e8b10512fdebcca1 to your computer and use it in GitHub Desktop.
Save magnetikonline/9ea4e8b10512fdebcca1 to your computer and use it in GitHub Desktop.
Generate some random characters in Bash.
#!/bin/bash
cat /dev/urandom | tr -dc A-Za-z0-9- | head -c 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment