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.

2
  • Note that pcregrep understands \n by itself, so you can do pcregrep -l -M '\n\n\n' (or \n{3}) without the need for a shell that supports $'...'. Commented Jul 28, 2016 at 15:47
  • Note that it fails to find files that have 2 (and only 2) empty lines at the beginning (whose content starts with \n\n) Commented Jul 28, 2016 at 15:50