summaryrefslogtreecommitdiff
path: root/home/xyz
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-05-19 23:40:52 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-05-29 15:59:07 -0700
commit979481a4a0dfdefa1d7767ceaf19f23757ae683f (patch)
treea3e3e2a77735940f5a4373f6d5af49962d4e37cc /home/xyz
parent48c74f3d9bdc0fc671c3615cf1de05e1f74d8947 (diff)
time.uuid, use - instead of . as separator
Diffstat (limited to 'home/xyz')
-rwxr-xr-xhome/xyz/.local/bin/time.uuid2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/time.uuid b/home/xyz/.local/bin/time.uuid
index 11cc67ad..bdaf4b3d 100755
--- a/home/xyz/.local/bin/time.uuid
+++ b/home/xyz/.local/bin/time.uuid
@@ -3,4 +3,4 @@
# echo current nanosecond since epoch and alpha-numerically ordered UUID
# https://stackoverflow.com/questions/28681650/generate-alpha-numerically-ordered-uuids-over-time?noredirect=1&lq=1
# https://askubuntu.com/questions/342842/what-does-this-command-mean-awk-f-print-4
-echo "$(date '+%s.%N').$(uuidgen -t | awk -F- '{OFS="-"; print $3,$2,$1,$4,$5}')"
+echo "$(date '+%s-%N')-$(uuidgen -t | awk -F- '{OFS="-"; print $3,$2,$1,$4,$5}')"