DCCoolBreeze
Programmer
OK. I have never used awk so please be patient. I want to extract some data from 300+ files. The files are in the same format. I need to extract parts of lines within each file. The two lines I need to extract data from are listed below:
"Starting Processing on Sat Feb 1 19:00:41 EST 2003"
I need to extract the date in mm/dd/yy hh:mm:ss
"Stage n Success 02/01/2003 19.16.53"
I need to extract the 3 columns: Stage, Status and Date
I will be importing this data into a database once I extract it from each file so I would like to write it to a file in comma delimited form. For example:
Stage 0,Start,02/01/2003 19:00:41
Stage 1,Success,02/01/2003 19:16:53
...
Stage n,Status,mm/dd/yy hh:mm:ss
How would I do this???
"Starting Processing on Sat Feb 1 19:00:41 EST 2003"
I need to extract the date in mm/dd/yy hh:mm:ss
"Stage n Success 02/01/2003 19.16.53"
I need to extract the 3 columns: Stage, Status and Date
I will be importing this data into a database once I extract it from each file so I would like to write it to a file in comma delimited form. For example:
Stage 0,Start,02/01/2003 19:00:41
Stage 1,Success,02/01/2003 19:16:53
...
Stage n,Status,mm/dd/yy hh:mm:ss
How would I do this???