diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-05-19 23:40:52 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-05-19 23:40:52 -0700 |
commit | 59c25e6a46413c5ed761239dca6cfe0b220e595d (patch) | |
tree | 870e2c815ac5c19c0f6e2b81ce6059dc19a39764 /home | |
parent | 78f65375f190a6c1820044d6234f62d3af6d5dec (diff) |
time.uuid, use - instead of . as separator
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/time.uuid | 2 |
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}')" |