Title: Question on selecting files

I have a question on a shell script I am trying to piece together (and it must be a shell script. I am trying to find time to learn Perl, but at this point it looks to me like a cat walked across a keyboard....). I need to go through a directory and move any file older than 10 days. How do I go about this? I know that I can get the date from 'ls -l', but I don't know how to use this in a comparison? I know that I could probably come up with a really (really) ugly set of logic statements, but there has got to be an easier way. Anybody want to share their thoughts/ideas? Please?

Garl "Who is not quite as good as Jamie"


=======================================================================
Garl R. Grigsby
Senior Customer Applications Engineer - I-DEAS CAE & FEMAP Support
-----------------------------------------------------------------------
EDS PLM Solutions                                  Phone: (800)955-0000
Global Technical Access Center                      FAX: (541) 342-8277
1750 Willow Creek Circle                    Email: [EMAIL PROTECTED]
Eugene, OR 97402                   Internet:  http://www.plmsol-eds.com
=======================================================================
   -FEA makes a good engineer great, and a poor engineer dangerous-
=======================================================================

Reply via email to