Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pacbell!att!chinet!les From: les@chinet.UUCP (Leslie Mikesell) Newsgroups: comp.unix.questions Subject: Re: -since option for ls -lt Summary: Another question Keywords: options ls find Message-ID: <5793@chinet.UUCP> Date: 10 Jun 88 03:37:51 GMT References: <344@ajpo.sei.cmu.edu> <10981@cgl.ucsf.EDU> <355@conexch.UUCP> Reply-To: les@chinet.UUCP (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 18 In article <355@conexch.UUCP> root@conexch.UUCP (Larry Dighera) writes: >simple matter to get a listing of the files that have been changed within >n days. Try this: > > find . -ctime -n -exec ls -l {} \; I would like to have a listing that shows only directory names (without showing subdirectories) with the date of the last change to any non-directory file contained in that tree. Comparing this to a similar listing of archive files would show which ones need to be updated. The date of a directory itself is pretty useless for this purpose, since compressing files, compiling, deleting *.o files, etc. will affect the dir date even though no real changes have happened. I have almost resorted to running zoo on all the directories where I am not actively working just to get this effect... Can it be done with any of the usual tools? Hmm.. might be a good job for perl when the version with filename globbing is released. Les Mikesell