mchilukuri
Programmer
I am searching for particular line in log directory which has files generated daily for each job. I was able to extract the lines and the output looks like below
grep 'Session statistics: Requests' *
DE_CRAMERCompSys.200909081 0735711.dbg:[Mon Sep 7 2009 01:48:17.5820] - <TID: 001> <STATE > Session statistics: Requests added: 0, updated: 0, deleted: 3, errors: 0, warnings: 12442
DE_CRAMERCompSys.200909091 1116326.dbg:[Tue Sep 8 2009 01:08:20.4780] - <TID: 001> <STATE > Session statistics: Requests added: 0, updated: 0, deleted: 3, errors: 0, warnings: 12442
DE_CRAMERCompSys.dbg:[Wed Sep 9 2009 01:11:51.0430] - <TID: 001> <STATE > Session statistics: Requests added: 0, updated: 0, deleted: 3, errors: 0, warnings: 12442
Now I am trying to generate a file from the above file using AWK
Job Time Added Updated Deleted Errors
---- ------------- ------ ------- ------- ------
DE_CRAMERCompSys Mon Sep 7 2009 01:48:17 0 0 3 0
DE_CRAMERCompSys Tue Sep 8 2009 01:08:20 0 0 3 3
DE_CRAMERCompSys Wed Sep 9 2009 01:11:51 0 0 3 0
Can anyone please help as I am not that familiar with AWK
grep 'Session statistics: Requests' *
DE_CRAMERCompSys.200909081 0735711.dbg:[Mon Sep 7 2009 01:48:17.5820] - <TID: 001> <STATE > Session statistics: Requests added: 0, updated: 0, deleted: 3, errors: 0, warnings: 12442
DE_CRAMERCompSys.200909091 1116326.dbg:[Tue Sep 8 2009 01:08:20.4780] - <TID: 001> <STATE > Session statistics: Requests added: 0, updated: 0, deleted: 3, errors: 0, warnings: 12442
DE_CRAMERCompSys.dbg:[Wed Sep 9 2009 01:11:51.0430] - <TID: 001> <STATE > Session statistics: Requests added: 0, updated: 0, deleted: 3, errors: 0, warnings: 12442
Now I am trying to generate a file from the above file using AWK
Job Time Added Updated Deleted Errors
---- ------------- ------ ------- ------- ------
DE_CRAMERCompSys Mon Sep 7 2009 01:48:17 0 0 3 0
DE_CRAMERCompSys Tue Sep 8 2009 01:08:20 0 0 3 3
DE_CRAMERCompSys Wed Sep 9 2009 01:11:51 0 0 3 0
Can anyone please help as I am not that familiar with AWK