Computing.Net > Forums > Solaris > delete file created before 2Hrs bac

delete file created before 2Hrs bac

Reply to Message Icon

Original Message
Name: Ganesh kumar
Date: December 17, 2003 at 22:37:15 Pacific
Subject: delete file created before 2Hrs bac
OS: Sun OS Sparc
CPU/Ram: 12/24
Comment:

Will u please give me a solution for
deleting the files starting with arch* created before 2hrs back.

eg: /var/tmp/ contains file like
rw-r----- 1 ora1 dba 104851456 Dec 18 11:31 arch1_35303.dbf

In linux I used this command
eg: find /var/tmp/ -cmin +120 -a
-name 'arch*' -exec rm '{ }' \;

At present I am working on Sunsolaris Platform, in solaris
manpage of find doesn't contains cmin,
it contains only ctime and atime and it is for day wise.

Please try to give me a command or script ASAP.


Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: delete file created before 2Hrs bac

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge