I am in need of a script that reads a log file, takes some data from the file and saves it in a .csv (coma separated value) format. The example log is below:
log.txt:
Date: 3/14/09
Device #: 1
Test: Cont: pass
Test: Leakage: pass
Test: INL: 0.88
Test: DNL: 0.56
Device #: 2
Test: Cont: pass
Test: Leakage: pass
Test: INL: 0.76
Test: DNL: 0.44
Device #: 3
Test: Cont: pass
Test: Leakage: pass
Test: INL: 1.2
Test: DNL: 0.84
format for the .csv file:
log.csv:
device, INL, DNL
1,0.88,0.56
2,0.76,0.44
3,1.2,0.84
Any help will be greatly appreciated.