Computing.Net > Forums > Unix > Purging K shell Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Purging K shell Script

Reply to Message Icon

Name: egls
Date: February 27, 2006 at 19:13:17 Pacific
OS: Unix
CPU/Ram: 2
Product: Sun
Comment:

Hi,

Need to change the following command to also purge the child directories after /data/tmp within one command (recursively check for X number of days old files and purge accordingly)?
e.g. /data/tmp/a, /data/tmp/a/b, /data/tmp/log.

find /data/tmp -type f -mtime +7 -exec rm -f {} \;

Thanks
egls




Sponsored Link
Ads by Google

Response Number 1
Name: egls
Date: February 27, 2006 at 23:05:12 Pacific
Reply:

Just found out that the command itself is recursive. Thanks


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Purging K shell Script

Shell script to extract text www.computing.net/answers/unix/shell-script-to-extract-text/3999.html

korn shell script problem (using awk ? ) www.computing.net/answers/unix/korn-shell-script-problem-using-awk-/3547.html

unix shell script www.computing.net/answers/unix/unix-shell-script/5343.html