Search Results

Search: Posts Made By: venkat918
3,187
Posted By MadeInGermany
Calculate the previous month in the shell: #...
Calculate the previous month in the shell:

# set several shell variable in one stroke
eval $(date '+yr=%Y month=%m')
echo "This month: ${month}:${yr}"
lastmonth=$((month - 1))
if [[ $lastmonth...
Showing results 1 to 1 of 1

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