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.

4
  • 2
    So I guess, due to race conditions, grep might have read the 11th or 12th pattern already, but probably not the 100 thousandst? Commented Jan 25, 2012 at 16:12
  • 3
    This depends in part on the length of the lines and the size of the pipe buffer, but the short answer is that grep will reads some reasonably limited amount of extra data before being killed. Commented Jan 25, 2012 at 17:47
  • 1
    @userunknown, exactly. Commented Jan 25, 2012 at 19:41
  • Cool, I didn't know that happened. I thought grep would continue sending output into a void, similar to /dev/null Commented Jan 25, 2012 at 21:02