Jaffar, No ready to use example, just some hints. 1. use touch to create a file with a timestamp of 2 hours ago (see manpage of touch) 2. create a list of all logfiles (list1) 3. create a list (list2) of files newer than this file using find with the -newer option (see manpage) 4. remove elements of list2 from list1 5. rm file listed in list1 alas find has no -older function, and the -atime option works with a 'day'-unit. Regards, Carel-Jan === If you think education is expensive, try ignorance. (Derek Bok) === > Hello list, > > Can any one give me an example, how can I delete log files <2hrs to my > system time. > > > -- > Best Regards, > Jaffar, OCP DBA > Banque Saudi Fransi > Saudi Arabia > ---------------------------------------------------------------------------------------- > "It is your atittude, not your aptitude that determins your altitude." > -- > //www.freelists.org/webpage/oracle-l > -- //www.freelists.org/webpage/oracle-l