This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
find [2009/06/23 23:30] k2patel |
find [2011/10/24 16:02] k2patel |
||
---|---|---|---|
Line 42: | Line 42: | ||
The first command can be modified to specify other date and time,\\ | The first command can be modified to specify other date and time,\\ | ||
so that the commands will return all files that have changed since that particular date and time. | so that the commands will return all files that have changed since that particular date and time. | ||
+ | |||
+ | |||
+ | <code bash | cmd> | ||
+ | find . -type f -mtime +14 -ok rm -f {} \; | ||
+ | </code> | ||
+ | |||
+ | Confirm before delete \\ | ||
+ | All files older then 14 days in root of location will be deleted with confirmation. | ||