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*

3
  • 5
    ... or with GNU find, you could use date strings directly I think e.g. -newermt '21 Feb' ! -newermt '22 Feb' Commented Feb 27, 2019 at 19:01
  • I recommend grep -H, in case there's only one matching file. Or, more portably, add /dev/null to the grep command to ensure there's always at least two. Commented Dec 11, 2019 at 14:01
  • Thanks, Toby! I've incorporated the /dev/null suggestion as a more-general solution. Feel free to edit in such excellent suggestions directly next time! Commented Dec 11, 2019 at 14:06