Search in paragraph's text: Difference between revisions
Content added Content deleted
(verify the presence of a word or regular expression within several paragraphs of text (structured or not)) |
No edit summary |
||
Line 113: | Line 113: | ||
---------------- |
---------------- |
||
</pre> |
</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> |