homepage Welcome to WebmasterWorld Guest from 50.19.169.37
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
shell question: delete files a week or more old
shell, cycle, files
rsmarsha




msg:3743368
 10:58 am on Sep 12, 2008 (gmt 0)

Just wondering if anyone can help me with a shell script.

I need to delete all csv files in a folder older than 7 days. I know how to delete and other basic shell stuff but not sure how to do it on files older than 7 days.

 

rsmarsha




msg:3743560
 2:41 pm on Sep 12, 2008 (gmt 0)

Sorted it now, I used.

find /var/www/html/fredflintstone/exported_orders/done -mtime +6 -exec rm -f {} \;

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved