Search Results

Search: Posts Made By: venkat918
409
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

 

Featured Tech Videos

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