diff options
author | EuAndreh <eu@euandre.org> | 2021-02-17 23:55:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-02-17 23:58:50 -0300 |
commit | 33579d6a22107834f8007a20559f05e55f5ec669 (patch) | |
tree | a22b4cf5c672f52f6af917ecc5044467bfd8bee7 /aux | |
parent | README.md: Use main branch over tag in example (diff) | |
download | remembering-33579d6a22107834f8007a20559f05e55f5ec669.tar.gz remembering-33579d6a22107834f8007a20559f05e55f5ec669.tar.xz |
Refactor tests/lib.sh
Diffstat (limited to '')
-rwxr-xr-x | aux/utils.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/aux/utils.sh b/aux/utils.sh new file mode 100755 index 0000000..8d93fb5 --- /dev/null +++ b/aux/utils.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +uuid() { + # Taken from: + # https://serverfault.com/a/799198 + od -xN20 /dev/urandom | \ + head -1 | \ + awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' +} |