I have a serious number of QuickTime files in a series of deeply nested folders (by date, by provider) on a connected server.

Is there an easy command that will both find the file (I know the exact name and there will be no duplicates) and then copy it to a predetermined folder on the same server? Or even better, move it to that predetermined folder rather than copy it?

I work with FileMaker from which I can send the terminal commands so I can automate this process for hundreds of files, but I rarely use the terminal and could use this very basic help.

  • 1
    Please edit and give your question a meaningful title. Telling us your OS in the title is useless information. – DavidPostill Apr 21 '16 at 14:19

You can use find and mv.

find / -name "<yourfilename>" -exec mv "{}" "<the destination folder>" \; -print
  • Thank you. Is there a way to limit the volumes searched? I have a lot of connected volumes and I only need to search one of them. – pirxx Apr 21 '16 at 15:57
  • You can do find /Users if you want, instead of /, so as to avoid system folders and /Volumes. – Ziggy Crueltyfree Zeitgeister Apr 22 '16 at 0:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.