> No linux: > > DATA=$(date +%Y%m%d) > YESTERDAY=$(date --date "1 day ago" +%Y%m%d) > MONTH=$(date +%Y%m) > LASTMONTH=$(date --date "1 month ago" +%b) no bsd: DATA=`date +%Y%m%d` echo DATA luiz