Iam scheduling one script which takes a previous month as a argument like..
Iam running on 22nd of Mar then it will take
Sh test.sh -f 02 2014
for if iam running on 22 April then
sh test.sh -f 03 2014
How to get the previous month number through command iam doing for the curret month iam using like..
sh test.sh -f fuelevts_fdm `date '+%m'` `d ate '+%Y'` but for previous month
Any Expert a tricky code.
Note: Flaour is AIX.