Skip to content

Instantly share code, notes, and snippets.

@dhoelle
Created June 14, 2022 06:26
Show Gist options
  • Save dhoelle/7de58edd0801fa6b3b61615534323c1d to your computer and use it in GitHub Desktop.
Save dhoelle/7de58edd0801fa6b3b61615534323c1d to your computer and use it in GitHub Desktop.
bash function to generate a random, lower-cased UUID in MacOS
uuid () {
local newuuid=${$(uuidgen):l}
echo -n ${newuuid} | pbcopy
echo "copied ${newuuid} to clipboard"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment