Bash Avoiding date using printf Get the current date


Example

$ printf '%(%F)T\n'
2016-08-17