Hi I would like to get last 7 days starting from today and then store them into an array. For example today is 2 March 2004, my wanted values would be 24, 25, 26, 27, 28, 29 Feb and 1 Mar. How should I write the code? I know that to get yesterday's date, I can write the code as below:
TZ="$TZ+24"
export TZ
YESTERDAY=`date +%Y%m%d`
I tried TZ="$TZ+48" and so forth, but it failed. Thanks for your help!
Volcano
TZ="$TZ+24"
export TZ
YESTERDAY=`date +%Y%m%d`
I tried TZ="$TZ+48" and so forth, but it failed. Thanks for your help!
Volcano