I have logs being captured to a file. The log format is the same for all of them. In the below example the ALL_SAME,B,C,D, and E are the fields I want to parse, however the fields B,C,D, and E are not always the same. Could someone please point me in the right direction on what would be the best way to parse these out.
ALL_SAME ------ BBBBB BB:BB:BB ---- ---- ----
--- CCCCCCCCCCCCCCCC CCCC
--------- --- = DDDD ------ -- = EEEEEEEEEE
------- ---- ----
etc....
I would like the output to redirect to a different file something like this.
ALL_SAME BBBBB BB:BB:BB CCCCCCCCCC CCCC DDDD EEEEEEEEEE
Sorry if I didn't explain this right. This is my first time trying to parse something.
Please Help.
ALL_SAME ------ BBBBB BB:BB:BB ---- ---- ----
--- CCCCCCCCCCCCCCCC CCCC
--------- --- = DDDD ------ -- = EEEEEEEEEE
------- ---- ----
etc....
I would like the output to redirect to a different file something like this.
ALL_SAME BBBBB BB:BB:BB CCCCCCCCCC CCCC DDDD EEEEEEEEEE
Sorry if I didn't explain this right. This is my first time trying to parse something.
Please Help.