S
sparso
Guest
Ja sam u potreba od skriptu koja čita dnevnička datoteka, uzima neke podatke iz datoteke i sprema u. Csv (koma odvojene vrijednosti) formatu.Primjer log je u nastavku:log.txt:
Date: 3/14/09
Uređaj #: 1
Test: Cont: pass
Test: Leakage: pass
Test: inl: 0.88
Test: DNL: 0.56
Uređaj #: 2
Test: Cont: pass
Test: Leakage: pass
Test: inl: 0.76
Test: DNL: 0.44
Uređaj #: 3
Test: Cont: pass
Test: Leakage: pass
Test: inl: 1.2
Test: DNL: 0.84oblik za. csv datoteku:
log.csv:
uređaja, inl, DNL
1,0.88,0.56
2,0.76,0.44
3,1.2,0.84
Je li netko ima skriptu ili u Perl ili Python to bi bilo mnogo poštovati.
Date: 3/14/09
Uređaj #: 1
Test: Cont: pass
Test: Leakage: pass
Test: inl: 0.88
Test: DNL: 0.56
Uređaj #: 2
Test: Cont: pass
Test: Leakage: pass
Test: inl: 0.76
Test: DNL: 0.44
Uređaj #: 3
Test: Cont: pass
Test: Leakage: pass
Test: inl: 1.2
Test: DNL: 0.84oblik za. csv datoteku:
log.csv:
uređaja, inl, DNL
1,0.88,0.56
2,0.76,0.44
3,1.2,0.84
Je li netko ima skriptu ili u Perl ili Python to bi bilo mnogo poštovati.