in reply to How do I find and delete files based on age?
find ./ -name 'DATE_*' -mtime +14 -exec rm -rf {} \;
backup first, test before you run (w/o the -exec rm -rf {} \;) to verify it finds the right fields, etc, etc...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I find and delete files based on age?
by bsdz (Friar) on Feb 27, 2007 at 14:17 UTC | |
|
Re^2: How do I find and delete files based on age?
by 0xbeef (Hermit) on Feb 28, 2007 at 08:41 UTC |