I need to do some housekeeping, moving files around, but despite having a look around, I’m rather stuck, it’s going to take me ages to crack this… So please can anyone help?
What I want to do: Copy files from one set of folders to one destination folder. The source is a named folder plus all the subfolders under it, and all the ones under them, and so on. I want to specify a string that all the source file filenames (excluding the “extension”) must contain in order to be copied. As an example this might be “srgb”. I also want to specify a string that the extension must contain (or actually be) for example “jpg”. I’d like the string matching not to be case sensitive. These two string matches are “and” rather than “or”.
So I could do with some commands to Bash where I edit in:
filename match string
extension match string
If when copying, the file is already in the destination, then it can be overwritten, or the file skipped, whatever is easier.
There will probably be whizzo ways of doing this, ideally I’d like something “step-by-step simple” that I might be abe to adapt myself if the need arises. I’m rather stuck how to start at present.