Search in paragraph's text: Difference between revisions
m
→{{header|AWK}}
Thundergnat (talk | contribs) (→{{header|Raku}}: expand into a complete solution) |
m (→{{header|AWK}}) |
||
Line 117:
Using the awk "Record Separator" :
<lang awk>
</lang>
Note : RS is modified from "\n" to "" in order to use Traceback information in index function.
ORS is modified to seperate the paragraphs with "\n----------------\n"
Each paragraph must contains "Traceback" and "SystemError"
substr is extracting only characters after "Traceback" appearance, until the next matching "Traceback" and "SystemError".
|