On 11 February 2017 at 14:24, bruce <badouglas@xxxxxxxxx> wrote: > Hi. > > Test file with a name of: > > 67.205.168.80_PID.dat > > find . -name '*.dat' -exec ls {} \; > displays the file > > but > find . -name '*.dat' -exec rm -f {} \; > doesn't delete it. > > thoughts? > I am not sure this is the problem, but I always enclose braces with single quotes '{}' . >From the man page: find . -type f -exec file '{}' \; Runs `file' on every file in or below the current directory. Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation. The semicolon is similarly protected by the use of a backslash, though single quotes could have been used in that case also. -- Ahmad Samir _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx