i have a file that looks like this:
.
.
.
15 02 2013 12:05:07 [DBG] vspd[3327]: VSP 0: RX 452B30303032340D
15 02 2013 12:05:07 [DBG] vspd[3327]: VSP 0: WX 452B30303032340D
Sniffer log of serial port communication.
How can i automatically translate hex char codes to string?
I tried to use some thing like this:
cat vspd.log | awk -F'(RX|WX)[[:space:]]*' '{print $2}' | awk 'BEGIN { FS = "" }{for (i = 1; i < NF; i = i + 1) a=$i$i+1;printf "%s", a; print}' | xxd -r
But it gives only very partial success, i think i messed something with pipes.
The question is how can i convert
tail -f file.log | awk -F'(RX|WX)[[:space:]]*' '{print $2}'
Into something readable?