tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Variation on find
@ 2000-06-19 10:56 Tom McCarrick
  0 siblings, 0 replies; only message in thread
From: Tom McCarrick @ 2000-06-19 10:56 UTC (permalink / raw)
  To: tru64-unix-managers

Hi

I am trying to use the 'find' command in a situation where I can display all
the files older than a certain date, in a certain directory but without
descending down the hierarchy.
  I have put the command in a shell script called 'showold' as follows: 
   'find . -prune -mtime +$1 -exec ls -ltr {} \; 
and to invoke it I type e.g. 'showold  5' - (shows all files older than 5 days).
However, it will show files in subdirectories also (which I don't want). The
'prune' modifier does not restrict the find to the current directory, as I
hoped ir would.

Am I missing something on the command line, or is there another way around this?

TIA
Tom Mc Carrick
Sys Admin
Van den Bergh Foods
Tom.mccarrick@unilever.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-06-19 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-19 10:56 Variation on find Tom McCarrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox