The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to archive logs older than 5 days & then delete them? timus1980 UNIX for Advanced & Expert Users 1 02-08-2008 03:53 AM
Delete logs every 3 hours tungaw2004 UNIX for Dummies Questions & Answers 3 12-09-2007 05:22 AM
Delete old logs chiru_h Shell Programming and Scripting 4 09-14-2007 03:33 PM
How to delete files over 30 days GEBRAUN UNIX for Dummies Questions & Answers 2 01-24-2006 10:58 PM
How to delete files which are 7 days old arunava_maity UNIX for Dummies Questions & Answers 8 05-10-2001 06:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 09-08-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 1,031
I tried it - it works overhere. I have no clue, sorry.
Maybe you post a "ls -l" of those files and what you entered.
Reply With Quote
Forum Sponsor
  #9  
Old 09-08-2008
Registered User
 

Join Date: Aug 2008
Posts: 18
Hi zaxxon

I have one ore dout..

find . -type f -name "*.log" -mtime 3 -print

its showing current directory *.log files this is k for me

but if i use
find . -type f -name "*.log" -mtime +3 -print -->its showing some other directory *.log files also

I want to delete current directory *.log files only pls advice me ..
Reply With Quote
  #10  
Old 09-09-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 1,031
Strange. Nevertheless, "find" is recursive; check out the -prune switch in the man page and play around with it to prevent it to descent into subdirs.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0