Timeline Generator

Use this bash script to generate a quick timeline of events. It's basically a simple for loop that makes use of the 'date' command.


Here's some sample output:

 ./timelineGenerator.sh 4 Thursday
 Thursday June 02 2011
  * 
 
 Thursday June 09 2011
  * 
 
 Thursday June 16 2011
  * 
 
 Thursday June 23 2011
  * 


Here's the usage output:

 ./timelineGenerator.sh 
 timelineGenerator.sh:
 Quickly prints a listing of dates so that you can make a quick timeline.
 
 For example, if you want to make a listing of project goals for yourself
 and you want the goals to be done by Friday of each week,
 and the project lasts 7 weeks, you'd do:
 ./timelineGenerator.sh 7 Friday
 
 Usage: ./timelineGenerator.sh numWeeks [endOfWeek]
 E.g., ./timelineGenerator.sh 4
 E.g., ./timelineGenerator.sh 4 Friday