Hello All. I am trying to do this from a terminal prompt on my mac....
I have 100 folders all named different things. Those 100 folders are inside ~/Desktop/Pictures directory.
Each of the 100 folders are uniquely named. The image files inside of each folder only have some similarities.
IE:
inside of ~/Desktop/Pictures/pix I have many files all structured like this:
4-1-2010-15-30-week-pix.jpg
4-1-2010-15-30-day-pix.jpg
4-2-2010-15-30-week-pix.jpg
4-2-2010-15-30-day-pix.jpg
4-3-2010-15-30-week-pix.jpg
4-3-2010-15-30-day-pix.jpg
4-4-2010-15-30-week-pix.jpg
4-4-2010-15-30-day-pix.jpg
(as you can see the names are the date, time, type and folder name)
for another example:
inside of ~/Desktop/Pictures/wed I have many files all structured like this:
4-1-2010-15-30-week-wed.jpg
4-1-2010-15-30-day-wed.jpg
4-2-2010-15-30-week-wed.jpg
4-2-2010-15-30-day-wed.jpg
4-3-2010-15-30-week-wed.jpg
4-3-2010-15-30-day-wed.jpg
4-4-2010-15-30-week-wed.jpg
4-4-2010-15-30-day-wed.jpg
And I have 100's of these folders inside of ~/Desktop/Pictures/ with the many image files inside of each folder all named like the above examples consistently through all folders
What I want to do:
Move every image with "week" and "4-3-2010" in it's file name FRM EVERY folder that contains these images. (~/Desktop/Pictures) to my desktop.
How do I say this in a unix command: "Take every image file in every folder and sub folder belonging to ~/Desktop/Pictures that has "week" and "4-3" in the file name and move OR copy those image files to the desktop" ????
Thanks so much!