bin sh UUIDGEN usr bin uuidgen -x UUIDGEN exit echo uuidgen tr lower u

1
2
3
4
5
6
7
8
#! /bin/sh
UUIDGEN="/usr/bin/uuidgen"
[ -x "$UUIDGEN" ] || exit 1
echo "{$(uuidgen)}" | tr "[:lower:]" "[:upper:]"
exit 0