Search Results

Search: Posts Made By: franzpizzo
2,385
Posted By franzpizzo
It seems a little twisted, but it works: ...
It seems a little twisted, but it works:

YEAR=`date +%Y`
MONTH=`date +%m`
MONTH1=$(( MONTH - 1 ))
YEAR1=$YEAR
if [[ $MONTH1 -eq 0 ]]
then
MONTH1=12
YEAR1=$(( YEAR - 1 ))
fi
MONTH2=$((...
Showing results 1 to 1 of 1

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