How can I match – in, for example, a group of files from a Dired buffer – all files that have one or more blank lines at the end of the file?
The specific need that prompts this question is to remove those trailing blank lines, but with a manual prompt; so I want to search and replace. So I'm looking for a match as a separate step, maybe with an Emacs regexp pattern.