#Run this script to change the following dates into "YYYY-MM-DD" and add 3-digits index to the begining of each line
#Jan 1 2012
#Jan 2 2012
#Jan 16 2012
#Feb 14 2012
#Feb 20 2012
#Apr 8 2012
#May 13 2012
#May 28 2012

#after running this script, the dates will be changed into 
#001: 2012-01-01
#002: 2012-01-02
#003: 2012-01-16
#004: 2012-02-14
#005: 2012-02-20
#006: 2012-04-08
#007: 2012-05-13
#008: 2012-05-28

set index = 0
FND:*{Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec} [0-9]+ [0-9]+[ ]*$
	calc index = %{index} + 1
	lfill 04 2 0
	lfill index 3 0
REP:%{index}: %06-%02-%04
#Replace monthes
FND:Jan
REP:01
FND:Feb
REP:02
FND:Mar
REP:03
FND:Apr
REP:04
FND:May
REP:05
FND:Jun
REP:06
FND:Jul
REP:07
FND:Aug
REP:08
FND:Sep
REP:09
FND:Oct
REP:10
FND:Nov
REP:11
FND:Dec
REP:12