Re: Using FIND command to locate files by 'mtime' - Directories -vs- files

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 03/22/04

  • Next message: Dave Hinz: "Re: Need help for you unix gurus..thanks"
    Date: Mon, 22 Mar 2004 15:11:17 -0500
    
    

    On Mon, 22 Mar 2004 11:30:00 -0800, news.comcast.giganews.com
      <riverupdude@comcast.net> wrote:
    > How do you recursively descend thru directories and list ONLY files less
    > than X no. of days ?? My search is picking up files that don't meet the
    > qualifier:
    >
    >
    > find . -depth -mtime -1 -print|xargs -I {} ls -l {}
    >
    > Here are a few files that are returned:
    > -rw-r--r-- 1 mqm1 mqm1 9627 Jan 01 00:00 ArchiveLogs.log.old
    > -rw-r--r-- 1 mqm1 mqm1 14629 Jan 27 00:00 ArchiveLogs.out.DALQM
    > -rwxr--r-- 1 mqm1 mqm1 304 Jun 19 2003 CleanupBackup
    > -rw-r--r-- 1 mqm1 mqm1 0 Jun 19 2003 CleanupBackup.log
    >
    Add "-type f".

    -- 
    Incrsease your earoning poswer and gaerner profwessional resspect.
    Get the Un1iversity Dewgree you have already earned.
     [from the prestigious, non-accredited University of Spam!]
    

  • Next message: Dave Hinz: "Re: Need help for you unix gurus..thanks"