script to delete one month old file

Rajesh kanna tr_rajeshkanna at yahoo.com
Tue Aug 28 07:46:56 UTC 2007


On 8/26/07, kimberly custodio <kim_custodio at yahoo.com> wrote:
>
> anyone can help me create a script that will delete one month old file in
> redhat/ linux machine? thanks...
>
> ---------------------------------
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

Hi Kim,

The below command works for me.

#find /home/foldername -name '*' -type f -mtime +30 -exec rm -rf {} \;


--Rajesh
 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC




More information about the redhat-list mailing list