You're replying to a comment by Peteris 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 name, if you have one. (I'm @pkrumins, btw.))

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

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