Friedrich Ewald My Personal Website

Creating UUID under Mac OS Shell

I have the following alias in my .bashrc to create UUID’s quickly from the shell:

alias uuid="uuidgen | tr -d - | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo"
This generates a lowercase uuid and copies it to the clipboard all by calling uuid.


About the author

is an experienced Software Engineer with a Master's degree in Computer Science. He started this website in late 2015, mostly as a digital business card. He is interested in Go, Python, Ruby, SQL- and NoSQL-databases, machine learning and AI and is experienced in building scalable, distributed systems and micro-services at multiple larger and smaller companies.