Answers for "current year bash"

0

current year bash

date +"%Y"
date +"%y"
 
## Store to a shell variable ##
mydate=$(date +'%Y')
myyear=`date +'%Y'`
echo "Year = $mydate"
echo "Year = $myyear"
Posted by: Guest on September-10-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language