Changeset 18470
- Timestamp:
- 04/22/16 21:18:14 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Sourcefile.sh
r18422 r18470 524 524 +[1-9]) 525 525 # get next n nights 526 printprocesslog "DEBUG getdates - get the next "$1" days ."526 printprocesslog "DEBUG getdates - get the next "$1" days (incl today)." 527 527 for (( numdates=1 ; numdates <= $1 ; numdates++ )) 528 528 do 529 numhours=`echo " 12+ ( $numdates - 1 ) * 24 " | bc -l`529 numhours=`echo " 0 + ( $numdates - 1 ) * 24 " | bc -l` 530 530 dates=( ${dates[@]} `date +%Y/%m/%d --date="+"$numhours"hour"` ) 531 531 done
Note:
See TracChangeset
for help on using the changeset viewer.