I have a folder with images in it and it is organized by year and month folders (ie. /2015/08/image.jpg). Whenever an image is added, it is also copied and resized like so:image-1024x768.jpgimage-150x150.jpgimage-300x225.jpgimage-600x450.jpgimage.jpgI would like to make a script which will search through each year and month folder and copy only the original file into another folder on my system.I think I need to use regular expressions, but I don't know how.EDIT: Here are some sample file names. The ones with a star(*) next to them are the only ones that should be copied.1450366623-20151217-109x300.png1450366623-20151217-150x150.png1450366623-20151217-372x1024.png1450366623-20151217-600x1650.png1450366623-20151217.png*image-3-1024x768.jpegimage-3-150x150.jpegimage-3-225x300.jpegimage-3-300x225.jpegimage-3-600x450.jpegimage-3-600x800.jpegimage-3-768x1024.jpegimage-3-768x576.jpegimage-3.jpeg*IMG_0939-1-1024x768.jpgIMG_0939-1-150x150.jpgIMG_0939-1-300x225.jpgIMG_0939-1-600x450.jpgIMG_0939-1-768x576.jpgIMG_0939-1-e1451106610990-150x150.jpgIMG_0939-1-e1451106610990-225x300.jpgIMG_0939-1-e1451106610990-600x800.jpgIMG_0939-1-e1451106610990-768x1024.jpgIMG_0939-1-e1451106610990.jpg*IMG_0939-1.jpg*EDIT 2: I said that the images are organized in month/year folders, which I'm sure means it should just be recursive. However, there are other folders next to 2015 that I would prefer don't get copied.When these pictures are copied, is it possible to copy the folder structure also?EDIT 3: Thank you to everyone that has answered my question. I must apologize and regretfully admit that I am in over my head with this project and have decided to abandon it. I'm not even sure how to implement most of your answers.
How to copy image files whose names don't end with their resolution size?
shell script;files;wildcards