[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] bash und Oktalwerte



Peter Velan wrote:

> MONTH=`date +%m`
> ...
> MONTH=$[$MONTH - 1]

[geht nicht]

> Habe es nun so gelöst:
> 
> MONTH=$[10#`date +%m`]
> ...
> MONTH=$[$MONTH - 1]

Nimm dich einfach:

date "+%m" -d last-month

-- 
MfG usw.

Werner Mahr



Reply to: