You're replying to a comment by Peter Krumins.

June 28, 2011, 16:02

Awk is not the language for this. You want to use the find utility and combine it with rm.

Here is how to do it:

find /path -ctime -7 -exec rm {} \;

Note: If you use rm, always substitute -exec with -ls to make find will remove the right files!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "sandbox_257": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.