Arun kumar something somehting Enterting in to the line
.
.
.
.
Some text text Finshing the sentence
Some other text
.
.
.
.
Again something somehting Enterting in to the line
.
.
.
.
.
.
Again text text Finshing the sentence
I want only the content which start from the patten "Enterting in to the line" and end with "Finshing the sentence" .
Note : The files contain multiple enter and finish sentence. I want all the contents. All the sentence should be in same file.
I tried this .. . awk '/Enterting in to the line/,/Finshing the sentence Exit/ { print } ' filename. But it not working correctly .
Please help
Franklin thanks for your reply. "Enterting in to the line" and "Finshing the sentence" are the two patterns. After extracting the code I have to check the words like ERROR or Warning or Error in the paragraphs and print only those paras or sentences.
Arun kumar something somehting Enterting in to the line
.
.
.
.
Some text text Finshing the sentence
Some other text
.
.
.
.
Again something somehting Enterting in to the line
.
.
.
.
.
.
Again text text Finshing the sentence
I want only the content which start from the patten "Enterting in to the line" and end with "Finshing the sentence" .
Output :
Arun kumar something somehting Enterting in to the line
.
.
.
.
Some text text Finshing the sentence
Again something somehting Enterting in to the line
.
.
.
.
.
.
Again text text Finshing the sentence