Link Details

In this Stackoverflow question, the poster wants to know how to read only those lines whose immediate predecessor and successor lines satisfy certain conditions. For simplicity, the OP specifies that only lines that are not immediately preceded and followed by lines matching /foo/ should be printed, but why not generalize, right?

Posted by dotCore  |   Submitted: Aug 20 2013 / 23:07

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Recommended Links

Upvoters (3)



Downvoters (0)



    Scala
    Written by: Ryan Knight
    Featured Refcardz: Top Refcardz:
    1. Apache Hadoop
    2. Play
    3. Akka
    4. Debugging JavaScript
    5. Design Patterns
    1. Apache Hadoop
    2. REST
    3. Java
    4. Git
    5. Java Performance
    Connect with DZone