Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

opusthe2nd

macrumors 6502
Original poster
I have a dir that goes 10 levels deep. I want to extract all the jpg's out of them and into 1 dir. I am looking for a CLI syntax....any ideas?
 
I have a dir that goes 10 levels deep. I want to extract all the jpg's out of them and into 1 dir. I am looking for a CLI syntax....any ideas?

Have you considered playing a little with Automator? If you want to do this sort of thing often, I think you will like it. Power of CLI + GUI ease...
 
Havent messed with automator, I'm a die hard cli guy. :/

Anyways, I basically did cp */*/*/*/*.jpg's ~/newfolder and it worked. I had done this before in one swell foop but forgot what the syntax was. This worked just fine...thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.