![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
I tried it - it works overhere. I have no clue, sorry.
Maybe you post a "ls -l" of those files and what you entered. |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
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 .. |
|
#10
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |