Skip to content

Instantly share code, notes, and snippets.

@bjorand
Last active December 29, 2016 10:15
Show Gist options
  • Save bjorand/3a1cc56cc6ec62822a20a3164094de2a to your computer and use it in GitHub Desktop.
Save bjorand/3a1cc56cc6ec62822a20a3164094de2a to your computer and use it in GitHub Desktop.
Generate UUID with bash
od -x /dev/urandom | head -1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment