From: sysmark@helios.physics.utoronto.ca (Mark Bartelt)
Subject: Re: OSF/1 Tools
Date: 1995/07/14 [thread overview]
Message-ID: <DBpIKE.Mwz@info.physics.utoronto.ca> (raw)
In-Reply-To: MCGRANT.95Jul13095900@wheezer.Stanford.EDU
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
next prev parent reply other threads:[~1995-07-14 4:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-13 4:00 OSF/1 Tools Richard Hatherill Jr.
1995-07-13 4:00 ` Brian Saunders
1995-07-13 4:00 ` Michael C. Grant
1995-07-14 4:00 ` Mark Bartelt [this message]
1995-07-13 4:00 ` Richard Hatherill Jr.
1995-07-13 4:00 ` Bassirou Bah
1995-07-13 4:00 ` Peter Sherwood
1995-07-13 4:00 ` Bassirou Bah
1995-07-14 4:00 ` Dan Pop
1995-07-13 4:00 ` Dan Pop
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox