summaryrefslogtreecommitdiff
path: root/dot/local/bin/datel
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-12-09 03:58:58 -0500
committerAndrew Cady <d@jerkface.net>2018-12-09 03:58:58 -0500
commitf4bd641e36418bc2a43bc31d8ac0bf57b1c51953 (patch)
treef565e29f956152fdb53c2a5042714de5bbb202ab /dot/local/bin/datel
parent7aa3cd0a0e2961388df2cc11665dabef2250d6d7 (diff)
new commands
Diffstat (limited to 'dot/local/bin/datel')
-rwxr-xr-xdot/local/bin/datel3
1 files changed, 3 insertions, 0 deletions
diff --git a/dot/local/bin/datel b/dot/local/bin/datel
new file mode 100755
index 0000000..4375b4f
--- /dev/null
+++ b/dot/local/bin/datel
@@ -0,0 +1,3 @@
1#!/bin/bash
2date=$(date "$@")
3printf '%s\n' "$date" "${date//?/-}"