8

Awk/Perl convert textfile to csv with sensible format

view full story
linux-howto

http://stackoverflow.com – I have a historical autogenerated logfile with the following format that I would like to convert to a csv file prior to uploading to a database -------------------------------------- Thu Jul 8 09:34:12 BST 2010 BLUE Head 1 Duration = 20 s Activity = 14.9 MBq Sensitivity = 312 cps/MBq -------------------------------------- Thu Jul 8 09:34:55 BST 2010 BLUE Head 1 Duration = 20 s Activity = 14.9 MBq Sensitivity = 318 cps/MBq -------------------------------------- Thu Jul 8 10:13:39 BST 2010 RED Head 1 Duration = 20 s Activity = 14.9 MBq Sensitivity = 307 cps/MBq ------------------------------ (HowTos)