aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uts4
-rw-r--r--bin/uts.awk6
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/uts b/bin/uts
deleted file mode 100755
index 8777a7e2..00000000
--- a/bin/uts
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# Get the current timestamp in a POSIX compatible fashion
-PATH=$(getconf PATH)
-awk 'BEGIN { srand() ; print srand() }'
diff --git a/bin/uts.awk b/bin/uts.awk
new file mode 100644
index 00000000..3aaec2ab
--- /dev/null
+++ b/bin/uts.awk
@@ -0,0 +1,6 @@
+# Print the current UNIX epoch timestamp in a POSIX compatible fashion
+BEGIN {
+ srand()
+ print srand()
+ exit
+}