I am new w/AWK and need assistance on creating a flat comma delimitted file from a /var/mail/filename
Here is the file format:
Submitted Date: 06/22/99
Submitted Time: 11:26:58
Confirmation Identification Number: 33334444
User Information:
First Name.............: ED
Last Name..............: Je
Address................: 14 Autumn Tr.
City...................: San Antonio
State..................: TX
ZIP....................: 77062
Country................: usa
Phone..................: 281 222 4444
Email..................: ed@hotmail.com
Additional Information:
This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
Submitted Date: 06/22/01
Submitted Time: 12:26:58
Confirmation Identification Number: 33335555
User Information:
First Name.............: Joe
Last Name..............: Lewis
Address................: 14 Autumn Tr.
City...................: San Antonio
State..................: TX
ZIP....................: 77062
Country................: usa
Phone..................: 281 222 4444
Email..................: ed@hotmail.com
Additional Information:
This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
##################
OUTPUT DESIRED:
06/22/99,11:26:58,33334444,ED,Je,14 Autumn Tr.,San Antonio,TX,77062,USA,281 222 4444,ed@hotmail.com,This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
06/22/01,12:26:58,33335555,Joe,Lewis,14 Autumn Tr.,San Antonio,TX,77062,USA,281 222 4444,ed@hotmail.com,This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
Thanks in advance.
EG22
Here is the file format:
Submitted Date: 06/22/99
Submitted Time: 11:26:58
Confirmation Identification Number: 33334444
User Information:
First Name.............: ED
Last Name..............: Je
Address................: 14 Autumn Tr.
City...................: San Antonio
State..................: TX
ZIP....................: 77062
Country................: usa
Phone..................: 281 222 4444
Email..................: ed@hotmail.com
Additional Information:
This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
Submitted Date: 06/22/01
Submitted Time: 12:26:58
Confirmation Identification Number: 33335555
User Information:
First Name.............: Joe
Last Name..............: Lewis
Address................: 14 Autumn Tr.
City...................: San Antonio
State..................: TX
ZIP....................: 77062
Country................: usa
Phone..................: 281 222 4444
Email..................: ed@hotmail.com
Additional Information:
This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
##################
OUTPUT DESIRED:
06/22/99,11:26:58,33334444,ED,Je,14 Autumn Tr.,San Antonio,TX,77062,USA,281 222 4444,ed@hotmail.com,This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
06/22/01,12:26:58,33335555,Joe,Lewis,14 Autumn Tr.,San Antonio,TX,77062,USA,281 222 4444,ed@hotmail.com,This is the text being submitted by the person filling out the form. It can grow from one sentence to many.
Thanks in advance.
EG22