Search Results

Search: Posts Made By: kooshi
2,439
Posted By Franklin52
Use printf to format the value: ...
Use printf to format the value:
CURMONTH=$(printf "%02d" $(($(eval date '+%m') - 1)))

And change the next line to:
if [ "$CURMONTH" == "00" ]; then
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 04:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy