--- find.1 Wed Nov 2 13:59:16 1994 +++ find.1.new Sun Jan 27 13:28:40 2002 @@ -450,6 +450,16 @@ List; both \fIexpr1\fR and \fIexpr2\fR are always evaluated. The value of \fIexpr1\fR is discarded; the value of the list is the value of \fIexpr2\fR. +.SH "USAGE EXAMPLES" +.IP "Note that the following have been tested with the bash shell. If you use another shell, your mileage may vary." +.IP "Delete all class files from the current directory. Note the space between the `{}' and the `\\\;'. It's important." +find . -name "*.class" -exec rm {} \\; +.IP "Clear out files older than 7 days." +find . -mtime +7 -exec rm -f {} \\; +.IP "Clear out zero length files." +find . -size 0 -exec rm -f {} \\; +.IP "Find headers that use errno." +find /usr/include -name "*.h" -exec grep -yl errno {} \\; .SH "SEE ALSO" \fBlocate\fP(1L), \fBlocatedb\fP(5L), \fBupdatedb\fP(1L), \fBxargs\fP(1L) \fBFinding Files\fP (on-line in Info, or printed)