Thursday, October 14, 2010

Shell sample commands


Which Java files have not been modified in the last week?
find . -name ' *. java' -mtime +7 -print


Which Java files have been modified in the last week?
find . -name ' *. java' -mtime -7 -print

No comments:

Blog Archive