Thanks folks. I knew I had seen this before, I just could not remeber exactly how it was doen. find... find is the key. In Unix, there is always a way...... <grin>
Garl
-----Original Message-----
From: Bob Miller [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:33 PM
To: [EMAIL PROTECTED]
Subject: [EUG-LUG:1952] Re: Question on selecting files
Rob Hudson wrote:
> You want to use 'find'. man find for all the details...
>
> find ./* -mtime +10 -maxdepth 0
>
> You can use find's -exec of -ok arguments to move those files, but I'm
> not sure exactly how to throw that into the mix.
$ find . -mtime +10 -maxdepth 1 -exec mv '{}' /other/dir ';'
I had to change maxdepth to 1 because I changed the starting directory
from "./*" to "." .
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com [EMAIL PROTECTED]
