echo "please enter the complete path where you want to search for files."
read path
while read line
do
NAME=`find "$path" -type f -name "$line" 2>/dev/null`
if [[ -n "$NAME" ]]
then
echo "$line" file has been found.
else
echo "$line" file NOT found.
fi
done < "files"
In my case output is as follows.
please enter the complete path where you want to search for files.
/tmp
chumma file NOT found.
tets100 file has been found.
test98 file has been found.
test8 file has been found.
test7 file has been found.
test6 file has been found.
test5 file has been found.
test4 file has been found.
test3 file has been found.
test2 file has been found.
test1 file has been found.
Where file named files is the input file with all file names you want to search for.