I have problem concerning bash programming
How can I search a multiline pattern in a file ( by "sed" or "grep" or ...)?
As far as I know these tools are line oriented, however "sed" gives the possibilty of multiline pattern,but I couldn't succeed in using it correctly.
Let me give you an example:
I want to search the following pattern in a file:
"Hello ! How are you?
I'm doing OK.
Wish you luck"
Note:These lines should follow each other without any extra lines between them.
And I want my search not to be case sensitive.
I would be so thankful if you show me the point