find / -name "tmpfile" -exec rm {} /; find / -name "tmpfile" -ok rm {} /; rm不接受标准输入,所以不能用find / -name "tmpfile" |rm