T
tim
Help please..
I have to parse through a file for a pattern and if the pattern
matches, the preceding two and succeeding lines until a blank line is
encountered need to be redirected to another file. This has to be done
multiple times until EOF.
I have figured out the pattern matching and file redirection part. Can
anyone give hints regarding how to capture the preceedng two lines
after the pattern matches.
Thanks for your help.
tim
I have to parse through a file for a pattern and if the pattern
matches, the preceding two and succeeding lines until a blank line is
encountered need to be redirected to another file. This has to be done
multiple times until EOF.
I have figured out the pattern matching and file redirection part. Can
anyone give hints regarding how to capture the preceedng two lines
after the pattern matches.
Thanks for your help.
tim