Hi,
I am new to ksh scripting and I have a problem.
I have a file in which I have to search for a particular pattern say 'a' then from that line I need to search for another pattern say 'b' in the previous lines and thne print the file from pattern 'b' till the end of file.
For eg:
============
aaaaaaaa
bbbbbbbb
ccccccccc
dddddddddd
eeeeeeeee
==================
Now I need to search for string ccccccc from there I need to search for the first occrance of ===== pattern and from that point I need to print till the end of the file. This is so complicated because the pattern repeats in a similar way in the file.
I know this is very confusing
please let me know if i need to clarify anything thats mentioned above