find / -type f -name 'textfile.txt'
find / -type f -name '.DS_Store' -delete
find /var/www/html -type d -exec chmod 744 {} \;
find /var/lib/samba/private/msg.sock -mtime +10 -print -delete
Additionally, tee the output to file so line count can be displayed when find has completed its task.
find /var/lib/samba/private/msg.sock -mtime +10 -print -delete | tee line.txt && wc -l line.txt
find -maxdepth 1 -mtime +10 -print -exec rm -r {} +