Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 3
    If the output is structured, then awk would do it, but without any example output, it is impossible to provide a one-liner of anything... Commented Oct 25, 2013 at 21:47
  • 3
    I don't think that's a good candidate for a one-liner. Commented Oct 25, 2013 at 22:32
  • It will take a script to do this if you're looking for multiple lines. Commented Oct 26, 2013 at 17:43
  • A script would be fine also. Clarified the question. Commented Oct 28, 2013 at 14:17
  • Is this something that is going to be run regularly, or just once to find a runaway recursion bug? You know, if you need some kind of watchdog system against runaway recursion in some function, maybe it's worth building into that function, so that it doesn't have to be ferreted out of logs. Add an extra depth argument and pass down depth + 1 to the recursive calls. Have a check for excessive depth: log the situation, or abort or whatever. Commented Oct 29, 2013 at 3:50