Last Updated: February 25, 2016
· zedtux

uuidgen in lowercase on Mac OS X

uuidgen is a command line tool to generate UUIDs.

On Linux this command returns a lowercase string of a UUID.
But on Mac OS X it returning an uppercase string of a UUID.

So how to change this ?

I have created a simple alias as following:

uuidgen='uuidgen | tr "[:upper:]" "[:lower:]"'

Now executing uuidgen will output the following:


Simple :)