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
  • 2
    Perfect :). Just added -maxdepth 1 to keep the search not recursive Commented Feb 25, 2015 at 12:33
  • 3
    ! -newer means "not newer", so "older or the same age"; the file itself will be matched if it's in the path find looks at, just something to keep in mind. Commented May 14, 2015 at 9:31
  • 2
    @ferada It will not if you exclude it, which is why my answer also includes ! -name reference (see the third bullet). Commented May 14, 2015 at 9:34