1

weird in find -exec command

view story
linux-howto

http://www.unix.com – i feel weird with this 2 command Code: find /tmp/*test* -user `whoami` -mtime +1 -type f -exec rm -f {}\; find /tmp/*test* -user `whoami` -mtime +1 -type f -exec ls -lrt {}\; the first one return correct which only delete those filename that consist *test* where second command it listed all the files inside the directory which including those filename that not *test* can someone help to explain? Moderator's Comments: Please use code tags next time for your code and data. (HowTos)