Skip to content

Instantly share code, notes, and snippets.

@seanwoodward
Forked from ultim8k/uuid.sh
Created November 3, 2023 10:15
Show Gist options
  • Save seanwoodward/383d70d816e929ed16d4171ce638b70d to your computer and use it in GitHub Desktop.
Save seanwoodward/383d70d816e929ed16d4171ce638b70d to your computer and use it in GitHub Desktop.
Generate UUID in BASH/ZSH
### Source: https://coderwall.com/p/t_sz3q/generate-uuid-at-shell-prompt
# alias uuid="python -c 'import sys,uuid; sys.stdout.write(str(uuid.uuid4()))' | pbcopy && pbpaste && echo"
alias uuid="uuidgen | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment