$YEAR=`date "+%Y"`; #for year $month=`date "+%b"`; #convert numeric month to month name $DAY=`date "+%d"`; #for date