Xref: utzoo comp.unix.questions:7545 comp.unix.wizards:9286 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!cmcl2!brl-adm!umd5!mimsy!aplcen!anagld!rcsmith From: rcsmith@anagld.UUCP (Ray Smith) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: -since option for ls -lt Summary: "find" will do what you want with different args. Message-ID: <441@anagld.UUCP> Date: 8 Jun 88 11:10:40 GMT References: <344@ajpo.sei.cmu.edu> Reply-To: rcsmith@anagld.UUCP (Ray Smith) Organization: Analytics, Inc., Columbia, MD Lines: 29 In article <344@ajpo.sei.cmu.edu> jrkelly@ajpo.sei.cmu.edu (John Kelly) writes: > ... The only other command I know of that compares modification times >is "find" with the "-newer file" option, which lists files that are newer >than the specified file. But unless one can force the specified file to >have the desired cutoff modification time, this option does not help. Try the "find" command with either the "-mtime" or "-atime" options for modified time or access time. An example of finding all files modified with in the last week follows: find . -mtime -7 -a ! -type d -print ^^^^^^^^^ We don't want any directories do we?? Cheers, Ray -- Ray Smith | USnail: Suite 200, 9891 Broken Land Pky, Columbia, MD 21046 Analytics, Inc. | GEnie : rcsmith (301) 381-4300 | CIS : 72000,1111 | Net : ...!uunet!mimsy!aplcen!anagld!rcsmith =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "The trouble with doing something right the first time is that nobody appreciates how difficult it was." -Walt West =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=