Thanks for help. I should have included the desired output.
I have worked on trying to understand my awk script better.
Your examples have helped tremendously. I'm hoping you can
help me understand how to print the time stamp data only
once per every unique match. But your help this far has...
Thanks for reply.
I tested the date/time stamp match and it works on the
console.
awk '/^(... ... .. ..:..:.. ....[\x0D/])/' /path/to/input
I tested the /test_data/,/end_of_text_block_char/ /path/to/input, and it works on the console.
awk '/test_data/,/end_of_text_block_char/' /path/to/input...
I have a file of test data where I need to match on a pattern and then back up x number of lines (it varies) to match on the date/time stamp and then I need to continue to go forward in the text block until I match on the first blank line or in this case a hex pattern of
0D 0A 0D 0A 0D 0A 0D 0A...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.