User Tools

Site Tools


find

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
find [2009/06/23 19:30]
k2patel
find [2011/10/24 12:02] (current)
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.
  
find.txt ยท Last modified: 2011/10/24 12:02 by k2patel