Extracting all jpg's

Discussion in 'macOS' started by opusthe2nd, Jun 5, 2008.

  1. opusthe2nd macrumors 6502

    opusthe2nd

    Joined:
    Sep 5, 2005
    #1
    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?
     
  2. reclusivemonkey macrumors 6502

    reclusivemonkey

    Joined:
    Jun 2, 2008
    Location:
    Sowerby Bridge, West Yorkshire, UK
    #2
    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...
     
  3. opusthe2nd thread starter macrumors 6502

    opusthe2nd

    Joined:
    Sep 5, 2005
    #3
    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.
     

Share This Page