today's date shell script in ubu code example
Example 1: show date linux
date +"%d-%m-%y"
Example 2: current year bash
date +"%Y"
date +"%y"
## Store to a shell variable ##
mydate=$(date +'%Y')
myyear=`date +'%Y'`
echo "Year = $mydate"
echo "Year = $myyear"