darkrc/bin/ymd

9 lines
85 B
Bash
Executable File

#!/bin/sh
if [ -z "$*" ]
then
date +"%Y%m%d"
else
date +"%Y%m%d" --date "$*"
fi