diff options
author | Andrew Cady <d@jerkface.net> | 2018-12-09 03:58:58 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-12-09 03:58:58 -0500 |
commit | f4bd641e36418bc2a43bc31d8ac0bf57b1c51953 (patch) | |
tree | f565e29f956152fdb53c2a5042714de5bbb202ab /dot/local/bin/datel | |
parent | 7aa3cd0a0e2961388df2cc11665dabef2250d6d7 (diff) |
new commands
Diffstat (limited to 'dot/local/bin/datel')
-rwxr-xr-x | dot/local/bin/datel | 3 |
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 | ||
2 | date=$(date "$@") | ||
3 | printf '%s\n' "$date" "${date//?/-}" | ||