So I have a bunch of directories:
which themselves all contain subdirectories:
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:
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 get them mixed up.
I know that cp has a recursive option -r but how do I just extract the ones without the underscore? And then how do I preserve the directory structure when I move them over?