I have a sample file below:
# This is a test file. This is a test file. This is a test file
This is a test file. This is a test file. This is a test file.
This is a test file.
# Need to output just this paragraph.Need to output just this paragraph.
Need to output just this paragraph TOO. Need to output just this paragraph.
Need to output just this paragraph.
I need to output just the second paragraph starting from "#" till the last sentence in the paragraph.
How do I grep and output based on the pattern? Say if the file has more paragraphs, and I would like to output the paragraph which contains the word "TOO".