How to convert logs to csv format excluding spaces?

Asked by harry potter

How to convert logs to csv format excluding spaces in ubuntu 11.04. so that I can store it into a database..
My log format is this:

 1 Time(s): [ 0.498689] ACPI: Executed 1 blocks of module-level executable AML code

I want to have 1 Times in column 1, the number [ 0.498689] in second column and remaining in the third column.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

You should easily be able to adapt the answer I gave previously.

https://answers.launchpad.net/ubuntu/+source/util-linux/+question/177871

Can you help with this problem?

Provide an answer of your own, or ask harry potter for more information if necessary.

To post a message you must log in.