Re: [Q] find old files and sort it?

From: Holger.VanKoll@SWISSCOM.COM
Date: Thu Apr 24 2003 - 11:44:48 EDT


isnt the problem that those ls-flags only relate to the current file
-->sort 1 file ->useless ?

-----Original Message-----
From: Bill Verzal [mailto:BVerzal@KOMATSUNA.COM]
Sent: Thursday, April 24, 2003 5:38 PM
To: aix-l@Princeton.EDU
Subject: Re: [Q] find old files and sort it?

-exec ls -ltr
___________________________________________
Bill Verzal
AIX Admin/Komatsu America
(847) 970-3726 (v)

|---------+---------------------------->
| | L |
| | <leed@CHELE.CAIS.|
| | NET> |
| | Sent by: IBM AIX |
| | Discussion List |
| | <aix-l@Princeton.|
| | EDU> |
| | |
| | |
| | 04/24/2003 10:31 |
| | AM |
| | Please respond to|
| | IBM AIX |
| | Discussion List |
| | |
|---------+---------------------------->

>-----------------------------------------------------------------------
--------------------------------------------------------|
  |
|
  | To: aix-l@Princeton.EDU
|
  | cc:
|
  | Subject: [Q] find old files and sort it?
|

>-----------------------------------------------------------------------
--------------------------------------------------------|

We have IBM AIX 4.3.3. I wrote a script try to find all files (include
sundirectories) and list it date (reverse order). The script did work
correct. Can anyone give me a hint?

find /apps/dir1 -mtime +30 -exec ls -lt {} \;

Thanks



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:46 EDT