Article 5188V [SOLVED] Beginner cp help needed (don't hate me for forgetting)

[SOLVED] Beginner cp help needed (don't hate me for forgetting)

by
the_penguinator
from LinuxQuestions.org on (#5188V)
I've got /home/b***/recovered-from-mbp/ with a 1000 directories i.e., /recup_dir.1-->1014 underneath that. I want to use cp to copy only *.NEF, *.jpg etc. from those 1000 directories to /recovered-images. For example, if I go to the top of that tree this

$ find -iname '*.nef' -exec cp {} /home/b***/recovered-images/ \;

means I have to go into each of the 1000 directories individually and I'm trying to avoid that---despite having lots of time on my hands currently... Clues happily read!latest?d=yIl2AUoC8zA latest?i=wUolCG6j68A:Ol54sKvFuUA:F7zBnMy latest?i=wUolCG6j68A:Ol54sKvFuUA:V_sGLiP latest?d=qj6IDK7rITs latest?i=wUolCG6j68A:Ol54sKvFuUA:gIN9vFwwUolCG6j68A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments