[BACK]Return to find.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / find

Diff for /src/usr.bin/find/find.1 between version 1.87 and 1.88

version 1.87, 2014/01/20 05:07:48 version 1.88, 2014/03/20 08:49:32
Line 571 
Line 571 
 .Pp  .Pp
 Print out a list of all core files on local file systems:  Print out a list of all core files on local file systems:
 .Pp  .Pp
 .Dl "$ find / \e! -fstype local -prune -or -name '*.core'"  .Dl "$ find / \e! -fstype local -prune -o -name '*.core'"
 .Pp  .Pp
 Find all files in  Find all files in
 .Pa /usr/src  .Pa /usr/src
 ending in a dot and single digit, but skip directory  ending in a dot and single digit, but skip directory
 .Pa /usr/src/gnu :  .Pa /usr/src/gnu :
 .Pp  .Pp
 .Dl "$ find /usr/src -path /usr/src/gnu -prune -or -name \e*.[0-9]"  .Dl "$ find /usr/src -path /usr/src/gnu -prune -o -name \e*.[0-9]"
 .Pp  .Pp
 Find and remove all *.jpg and *.gif files under the current working  Find and remove all *.jpg and *.gif files under the current working
 directory:  directory:
 .Pp  .Pp
 .Dl "$ find . \e( -name \e*.jpg -or -name \e*.gif \e) -exec rm {} \e;"  .Dl "$ find . \e( -name \e*.jpg -o -name \e*.gif \e) -exec rm {} \e;"
 or  or
 .Dl "$ find . \e( -name \e*.jpg -or -name \e*.gif \e) -print0 | xargs -0r rm"  .Dl "$ find . \e( -name \e*.jpg -o -name \e*.gif \e) -print0 | xargs -0r rm"
 .Sh SEE ALSO  .Sh SEE ALSO
 .Xr chflags 1 ,  .Xr chflags 1 ,
 .Xr chmod 1 ,  .Xr chmod 1 ,
Line 606 
Line 606 
 specification.  specification.
 .Pp  .Pp
 The options  The options
 .Op Fl dfhXx  .Op Fl dfhXx ,
 and primaries  primaries
 .Ic -amin ,  .Ic -amin ,
 .Ic -anewer ,  .Ic -anewer ,
 .Ic -cmin ,  .Ic -cmin ,
Line 624 
Line 624 
 .Ic -mindepth ,  .Ic -mindepth ,
 .Ic -mmin ,  .Ic -mmin ,
 and  and
 .Ic -print0  .Ic -print0 ,
   and operators
   .Fl or
   and
   .Fl and ,
 are extensions to that specification.  are extensions to that specification.
 The  
 .Ic -iname  
 primary was inspired by GNU find.  
 .Pp  .Pp
 Historically, the  Historically, the
 .Fl d ,  .Fl d ,
Line 652 
Line 653 
 .Cm -depth  .Cm -depth
 would never be evaluated.  would never be evaluated.
 This is not the case.  This is not the case.
 .Pp  
 The operator  
 .Cm -or  
 was implemented as  
 .Cm -o ,  
 and the operator  
 .Cm -and  
 was implemented as  
 .Cm -a .  
 .Pp  .Pp
 Historic implementations of the  Historic implementations of the
 .Ic -exec  .Ic -exec

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88