aboutsummaryrefslogtreecommitdiff
path: root/bin/uuid
diff options
context:
space:
mode:
Diffstat (limited to 'bin/uuid')
-rwxr-xr-xbin/uuid63
1 files changed, 0 insertions, 63 deletions
diff --git a/bin/uuid b/bin/uuid
deleted file mode 100755
index 7aa1e58..0000000
--- a/bin/uuid
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-set -eu
-
-usage() {
- cat <<-'EOF'
- Usage:
- uuid
- uuid -h
- EOF
-}
-
-help() {
- cat <<-'EOF'
-
-
- Options:
- -h, --help show this message
-
-
- Generate UUID from /dev/urandom.
-
-
- Examples:
-
- Generate a UUID:
-
- $ uuid
- 755244c8-f955-16df-75cc-f25600c90422
- EOF
-}
-
-for flag in "$@"; do
- case "$flag" in
- (--)
- break
- ;;
- (--help)
- usage
- help
- exit
- ;;
- (*)
- ;;
- esac
-done
-
-while getopts 'h' flag; do
- case "$flag" in
- (h)
- usage
- help
- exit
- ;;
- (*)
- usage >&2
- exit 2
- ;;
- esac
-done
-shift $((OPTIND - 1))
-
-od -xN20 /dev/urandom |
- awk 'NR == 1 { OFS="-"; print $2$3,$4,$5,$6,$7$8$9; exit }'