Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Posts
    58

    Unanswered: old files compare date

    Hi, the below command searches for files older than today in a directory and also subdirectories. I want to restrict the search to the current directory only. Any ideas? Thanks
    find /path/to/search -type f -mtime +1.

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    'man find' and search for 'prune'

    find /path/to/search -type f -mtime +1 -prune

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •