The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Script to remove log files
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Script to remove log files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-01-2006
kiranherekar
Registered User
Join Date: Jan 2006
Posts: 6
Sorry a bit of google helped me to write the following.
#!/bin/bash
/usr/bin/find / -name *.log -ctime +7 -exec /bin/rm -f {} \;
kiranherekar
View Public Profile
Find all posts by kiranherekar