find usage real example

Question:
Find the location of the file called dummy.service under /etc filesystem and redirect its absolute path to the file /home/bob/dummy-service

Answer:
sudo find /etc -name dummy.service -exec echo {} > /home/bob/dummy-service \;