In terminal, move all files of kind 'movie' in subdirectories into highest-most parent?

I created an automator workflow to do it, but I'm not sure its doing it right. There's no way to see a verbose description of what its doing, and if it is working, it's moving about 4 files every 45 minutes.


I have a folder, we'll call it 'parentFolder.' It's got many, many, many, many subdirectories or child folders with many different types of files. I want to use terminal to recursively go through each subdirectory, pull out any file with a 'kind' of movie, and move it to parentFolder.


Since I know this is going to require us 'Find,' and scripting, I figured I would ask the syntax. Since Find is, I believe, a Unix command, it may be that you cannot do it by 'kind' and must do it based on a number of potential extensions that movie files would have. That's fine too, but not optimal.

Posted on Jun 20, 2022 8:09 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

In terminal, move all files of kind 'movie' in subdirectories into highest-most parent?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.