Search in paragraph's text: Difference between revisions
→{{header|jq}}
(Publish draft to task) |
|||
Line 176:
----------------
</pre>
=={{header|jq}}==
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
<lang jq>def p1: "Traceback (most recent call last):";
def p2: "SystemError";
def sep: "----------------";
split("\n\n")[]
| index(p1) as $ix
| select( $ix and index(p2) )
| .[$ix:], sep</lang>
'''Invocation''':
jq -rRs -f program.jq Traceback.txt
{{out}}
As required.
=={{header|Julia}}==
|