Say I've got a directory structure somewhat like this:
view | +--- 0001 | +--- 231 | +--- e2341 | ... and so on
My problem is that I want to copy a set of files that have the same name (such as file_001.jpg) to another place that has an identical directory structure, i.e. it's a mirror. Is there a way to copy files of a specific name pattern from one directory structure to another?
I tried something along the lines with…
cp -R */file_001.jpg /destination_folder
…but all I get is the following error
cp: cannot stat `file_001.jpg': No such file or directory
I guess I have to pipe in the file names somehow, anyone got any good idea on how to do this?