Search in paragraph's text: Difference between revisions

no edit summary
(verify the presence of a word or regular expression within several paragraphs of text (structured or not))
No edit summary
Line 113:
----------------
</pre>
 
=={{header|Awk}}==
Using the awk "Record Separator" :
<lang awk>
awk -v ORS='\n\n' '/SystemError/ { print RS $0 }' RS="Traceback" Traceback.txt |\
awk -v ORS='\n----------------\n' '/Traceback/' RS="\n\n"
</lang>
40

edits