Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!apple!voder!nsc!taux01!amos From: amos@taux01.nsc.com (Amos Shapir) Newsgroups: alt.sources.d Subject: Re: TIMESTAMP: a useful file filter by last modified time Summary: Nice, could be better Message-ID: <4160@taux01.nsc.com> Date: 2 Jul 90 07:12:42 GMT References: <926@limbo.Intuitive.Com> Organization: National Semiconductor (IC) Ltd, Israel, Home of the Series 32000 Lines: 22 X-Hdate: 9 Tamuz 5750 In article <926@limbo.Intuitive.Com> taylor@limbo.Intuitive.Com (Dave Taylor) writes: >.SH NOTES >This command checks the last modified time of the files, not >the created or last accessed times. It's possible that we've >choosen the wrong option in this case. That's easy to fix: add flags -a for access time, -c for change time. While we're at it, I find -r confusing - I think -n (for "newer") is more appropriate. Even better would be adopting the syntax of 'find' e.g. +m 30 adds 30 minutes, -h 2 subtracts 2 hours. Another useful change is to have timestamp read the list of files from stdin, rather than argv; that way it is not going to be limited by the size of the args list (usually about 5k), does not require fancy magic filename matching patterns, and also enables things like find dir -options -print | timestamp -- Amos Shapir amos@taux01.nsc.com, amos@nsc.nsc.com National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel Tel. +972 52 522408 TWX: 33691, fax: +972-52-558322 GEO: 34 48 E / 32 10 N