1

Copying jpegs recursively while preserving the directory structure

view story
linux-howto

http://www.linuxquestions.org – So I have a bunch of directories: dir1 dir2 dir3 etc. which themselves all contain subdirectories: dir1subdir1subdir2etc.and at the lowest level they contain all of these jpegs that I need. The problem is that I only need some of them. They're named like this: pic1.jpg pic1_med.jpg pic1_small.jpg pic2.jpg pic2_med.jpg etc. I want to just grab the ones without the size suffix and copy them all to another set of folders, while preserving the directory structure. The numbering all starts at 1 for each low level subdirectory, so I think that the directory structure is the only way to not g (HowTos)