@dragon
But this will produce cartesian product and may lead to several scan of a same directory : in particular if mylist contains numerous files it will leads to poor performance & takes longer than scanning all once.
Thank you everyone for your input and help. I proceeded with ctsgnb's advice.It works. I added few things for my need. Since the file I am searching was found in several different children directories i had to eliminate any duplicates.
For Ex:
File 123.jpg is found here
/cygdrive/c/temp/dir1/123.jpg
/cygdrive/c/temp/dir2/123.jpg
etc
So i did something like this
grep -f mylist.txt fullpath.txt | sort -t\/ -u -k3 | sort > theuniqueresult.txt
-k is 3 due to 2 subdirectories down where it found files
the above command eliminated the duplicates.
Thanks all, it was really fast reply.