Gathering files of a specific type into one location.

Joined
Sep 25, 2011
Messages
1
Reaction score
0
Points
1
Hello all!

I'm a bit of a Mac noob, I'm using my girlfriends very old Mac Book. When I say old I mean I'm running 10.4.11 on this thing. I do have a rough idea of how to operate the Terminal, which brings me to my question.

I deleted some music files I shouldn't have and ran a data recovery program. I now have a folder with 1,400 folders and each folder has 500 files. This is the data I recovered. I know the files I need at .mp4 but I don't know what they are called. (The data recovered software did not recover file names.)

I'm looking for a terminal command that will search through these 1,400 folders and copy all the .mp4 files to a specific directory.

Thank you in advance!
--Victor

EDIT: My friend solved this for me with: "find /path/to/directory -name '*.aac' -exec mv {} /path/to/destination \;" Mods, delete this?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top