aboutsummaryrefslogtreecommitdiff
path: root/bin/uts.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-09 12:41:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-09 12:41:23 +1300
commite937f5025061b1275271316a3cd14460950f48b9 (patch)
tree5f132169dc3bdd1bc5e10eb9f473e70fb20d9587 /bin/uts.awk
parentAdd clog(1df) (diff)
downloaddotfiles-e937f5025061b1275271316a3cd14460950f48b9.tar.gz
dotfiles-e937f5025061b1275271316a3cd14460950f48b9.zip
Rephrase uts(1df) as pure Awk
Diffstat (limited to 'bin/uts.awk')
-rw-r--r--bin/uts.awk6
1 files changed, 6 insertions, 0 deletions
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
+}