Hi,
I want to generate a file name for prevoiyus month using shell script.The file name will be "ContactsMod_<MON>.csv" where <MON> will be Jan, Feb etc...
I don't know how to do that.
i have one script as below
TDATE=`date`
echo $TDATE
YEAR=`date +%y`
echo $YEAR
MONTH=`echo $TDATE |awk '{print $2}'`
echo $MONTH
MONTHU=`echo $MONTH | tr "[a-z]" "[A-Z]"`
echo $MONTHU


but this gives the current month.
Please help me
Deepali