getting started with lex
Posted
by cambr
on Stack Overflow
See other posts from Stack Overflow
or by cambr
Published on 2010-05-13T04:54:35Z
Indexed on
2010/05/13
5:04 UTC
Read the original article
Hit count: 375
I need to format some hexdump like this:
00010: 02 03 04 05
00020: 02 03 04 08
00030: 02 03 04 08
00010: 02 03 04 05
00020: 02 03 04 05
02 03 04 05
02 03 04 08
to
02 03 04 05
02 03 04 08
02 03 04
02 03 04 05
02 03 04 05
02 03 04 05
02 03 04
a) remove the address fields, if present
b) remove any 08
at the end of a paragraph (followed by an empty line)
c) remove any empty lines
How can this be done using lex? thanks!
© Stack Overflow or respective owner