export TIMESTAMP=`date +%Y%m%d_%H%M%S`GDGFILE=file1_${TIMESTAMP}.txtsuffix=${GDGFILE#*_}prefix=${suffix%%_*}echo $prefixCURRENT=`date -d -7day +%Y%m%d`echo $CURRENTif [[ $prefix -gt $CURRENT ]] then echo 'within'fi