Say it was a Thursday and you wanted to print out today's date as well as the date of every Thursday for the next year. You could do it like this:
NUM=52; for ((POS=0; POS<$NUM ; POS++)); do echo `date -v +${POS}w +"%Y-%m-%d"`; echo; done
« DEBEMAIL and DEBFULLNAME | Main | Python Development and Library Management on Ubuntu »
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54ee17e0688340120a7b23c98970b
Listed below are links to weblogs that reference Date One Liner: