Add ymd script
This commit is contained in:
parent
9a5d15f100
commit
d2a7f3c6c0
1 changed files with 8 additions and 0 deletions
8
bin/ymd
Executable file
8
bin/ymd
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$*" ]
|
||||||
|
then
|
||||||
|
date +"%Y%m%d"
|
||||||
|
else
|
||||||
|
date +"%Y%m%d" --date "$*"
|
||||||
|
fi
|
Loading…
Reference in a new issue