grep shows the lines where the search word is found. I have a text file where there is no line break and entire text is on a single line. Is there any way to instruct grep to show the contents of the left and right (just like -after, -before)?
I will like to see the entire sentence. The words between 2 fullstops. (i.e. the sentence where the word is found)
You can temporarily chop the text into lines: