Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

shell question: delete files a week or more old

shell, cycle, files



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

5+ Year Member

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.


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

5+ Year Member

Sorted it now, I used.

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


Featured Threads

Hot Threads This Week

Hot Threads This Month