[15:41:36] Received packet Message <AmMcmp>
[destination_id=0x0]
[seq=0x10]
[controlmessage=0x7]
[data=0x1 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 ]
from node 119
[15:41:36] Received packet Message <AmSystemCtp> 
[seq=0x11]
[etx=0xd]
[parent=0x1]
[num_neighbors=0x9]
from node 119

cat comms.log | awk '{if (/\[..:..:..\]/) {print "\n"$0} else {print $0}}' > comms.txt

…inserts a newline before every timestamp.

Advertisements