Search code examples
macosfileunixfindnewline

How to find files that contain MULTIPLE newlines at their end?


I want to find all files that have multiple new line characters at the end of their content.

How is this possible?


Solution

  • FYI: It's possible to search for this with PHPStorm using RegEx search term \n+\n\Z