[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!


$ 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!