Hello,
I'm trying to write a piece of code in awk, which should be able recognize by some regexps two lines and then join them together (maybe write them without \n would be enough, I don't know).. the thing is that every line in the file i'm working with starts with some number, for example:
The thing i need to do, is recognize two lines with the same number and on the first is regexp "<found>", on the second is "<success>". If these rules are fulfilled then join the lines together. I'm not pretty sure, but something tells me that associative arrays can be the solution, but I have no idea how to do it.
Thanks for ideas.