Your Question: How Do I Increment a Date in Unix?
Contents How Do You Increment a Date in Unix Shell Script? Startdate=”$(Date -D”$1″ +%S)”; What I Need to Do Is Iterate Eight Times, Each Time Incrementing the...
Contents
How do you increment a date in Unix shell script?
startdate=”$(date -d”$1″ +%s)”; What I need to do is iterate eight times, each time incrementing the epoch date by one day and then displaying it in the format mm-dd-yyyy.
Must Read
How do you increment in Unix?
Using + and – Operators
The most simple way to increment/decrement a variable is by using the + and – operators. This method allows you increment/decrement the variable by any value you want.