From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,565600c2d443760d X-Google-Attributes: gidfee84,public From: sysmark@helios.physics.utoronto.ca (Mark Bartelt) Subject: Re: OSF/1 Tools Date: 1995/07/14 Message-ID: #1/1 X-Deja-AN: 106180148 sender: news@info.physics.utoronto.ca (System Administrator) references: <3u1nv1$b9c@ixnews2.ix.netcom.com> <3u296o$hv2@news.doit.wisc.edu> <3u35eo$s5o@ixnews6.ix.netcom.com> organization: Canadian Institute for Theoretical Astrophysics reply-to: mark@cita.toronto.edu newsgroups: comp.unix.osf.osf1 Rule #1: Questions should always be phrased as precisely and unambiguously as possible ... [ Richard Hatherill Jr. ] | Does anyone know of a tool that will show me the last accessed date of | my OSF/1 files. [ Brian Saunders ] | ls -u gives you last access time, ls -l last modification time. Use with | the t and possibly r flags for sorting. [ Richard Hatherill Jr. ] | The find and ls commands do not give | me what I need. I need a tool to give me a list of files not accessed | in the last 90 days. ls cannot do this and find with the atime option | does not work. Note that Brian's response *did* answer the original question, as posted. The "ls -u" command does show access times, which is what was asked for. After the followup question clarified what was *really* wanted, one reply suggested ... [ Michael C. Grant ] | Well, this should work OK: | | find . \! -atime -90 | | You might also want to exclude directories: | | find . \! -type d \! -atime -90 Rule #2: Examples are usually best understood if presented in simplest form. Here, for instance, we could just as easily say find . -atime +90 or find . -type f -atime +90 Note that if you want to actually see what the access times are, you'd need to do something like find . -atime +90 -exec ls -lud {} \; or find . -type f -atime +90 -exec ls -lu {} \; Mark Bartelt 416/978-5619 Canadian Institute for mark@cita.toronto.edu Theoretical Astrophysics mark@cita.utoronto.ca "Nur eine Waffel taugt!" -- Parsifal, in an Eggo commercial