I am a little rusty with my bash skills. I haven't had to do this kind of thing in a little while...
I am trying to parse a text file. It's a log of the capture of some rs-232 communications. The format of the log file is as follows:
Code:
Port opened by process "TEST_PRP.EXE" (PID: 3048)
Request: 05/10/2007 8:36:37 AM.16064
7C 02 03 00 03 12 00 00 18 DC 7D |........Ü}
Request: 05/10/2007 8:36:39 AM.11364 (+1.9530 seconds)
7C 02 03 00 03 12 00 00 18 DC 7D |........Ü}
Request: 05/10/2007 8:36:40 AM.67664 (+0.5624 seconds)
7C 02 03 00 03 12 00 00 18 DC 7D
...
...
...
Request: 05/10/2007 8:37:12 AM.37664 (+0.2187 seconds)
7C 02 03 00 03 12 00 F0 F7 C3 7D |......ð÷Ã}
Request: 05/10/2007 8:37:12 AM.61064 (+0.2344 seconds)
7C 02 03 00 03 12 00 F1 E7 E2 7D |......ñçâ}
Request: 05/10/2007 8:37:13 AM.82964 (+0.2187 seconds)
7C 02 03 00 03 12 00 00 18 DC 7D |........Ü}
Port closed
I want to just have the hex left behind:
Code:
7C 02 03 00 03 12 00 00 18 DC 7D
7C 02 03 00 03 12 00 00 18 DC 7D
7C 02 03 00 03 12 00 00 18 DC 7D
...
...
...
7C 02 03 00 03 12 00 F0 F7 C3 7D
7C 02 03 00 03 12 00 F1 E7 E2 7D
7C 02 03 00 03 12 00 00 18 DC 7D
Any help or a nudge in the right direction will be much appreciated.
Chris