I am facing following issue:Input:F=`date +%Y%m%d`echo $FOutput: F=20131231But when trying this(File Name:A.sh):C=`date`G=`$C +%Y%m%d`echo $Cecho $GOutput:A.sh[6]: Tue:  not foundTue Dec 31 06:14:12 EST 2013I want to pass the date in a variable and then extract only date in a specific format.
UNIX: How to extract date from a variable storing a UNIX DATE
shell;date;string