This is what bothers me:
I have a log file, written in a specific format, such as:
[DEBUG 7] 2012-06-12 09:26:37.847 [MOD: UNK/0 ] [FILE:ModuleManager.cpp:541] [FUNC: ModuleManager::handleStatusRequestMessage] [MSG:Got request for unsupported ALLOCATION_STATUS ]
so the blocks are pretty well separated. I am viewing this log through a tail, on a 80×25 terminal screen and it looks horrible (no, I cannot change the screen, it’s an embedded device).
Can you help me in creating a tail/awk (or similar) combination to achieve something like:
2012-06-12 09:26:37.847 Got request for unsupported ALLOCATION_STATUS
or
2012-06-12 09:26:37.847 ModuleManager::handleStatusRequestMessage - Got request for unsupported ALLOCATION_STATUS
or
2012-06-12 09:26:37.847 ModuleManager.cpp:541 ModuleManager::handleStatusRequestMessage - Got request for unsupported ALLOCATION_STATUS
from the long line above?
Thanks
or