This works in linux: $ date --date="last month" +%b Mar
In OpenBSD i tried # MonthCurrent=`date +%m` # MonthPrevious=`expr $MonthCur - 1` # echo $MonthPrevious 3 But I need month's abbreviation.
This works in linux: $ date --date="last month" +%b Mar
In OpenBSD i tried # MonthCurrent=`date +%m` # MonthPrevious=`expr $MonthCur - 1` # echo $MonthPrevious 3 But I need month's abbreviation.