On Fri, Apr 18, 2014 at 2:24 PM, lilit-aibolit <lilit-aibo...@mail.ru> wrote: > 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.
Install the "coreutils" package and you'll have gdate.