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*

5
  • we can shorten your version: awk '/!!!!!!!!!!!/{if(getline){print}}' file Commented Mar 16, 2014 at 13:20
  • 1
    Good that you have provided both the variants; given that the question doesn't make it clear! Commented Mar 16, 2014 at 13:23
  • Thanks @devnull. Yea, I was pretty much certain what I had in earlier was what OP wanted until a new answer came in which completely threw my understanding of the question. So went with both! :) Commented Mar 16, 2014 at 13:25
  • @jaypalsingh The level of tolerance for not-so-good-quality-posts is considerably higher on this site in comparison to SO. As such, rather vague questions keep getting attracted. Commented Mar 16, 2014 at 13:31
  • 1
    @jaypalsingh nice!!!!!! :D Commented Mar 16, 2014 at 13:33