checking file existence

Hi,

 My requirement was to check the existence of a file having a specified pattern.The way i tried to achieve this was 

   if [ -f  ilvs_trace*.\`date \+'%m%d'\` ]; then

             echo "File found"               
    fi

an example file having this pattern was 'ilvs_trace01.0124'.

it will vary from 01-22,thats why i tried the above one using wildcard.

Would anyone can provide me a solution for this in the way i expects.

Your help is appreciated.

Do you want to display all the files with that specific pattern?
Then use for loop like this

for i in ilvs_trace*.`date +'%m%d'`
do
	echo $i
done

if [ $line != $( echo $line |sed s/'ilvs_trace[0-2]\{0,2\}\.[0-9]\{0,4\}'/REGEXP/ ]
then
echo "File Found"
fi

filelist=`ls directory| grep ilvs_trace`
for q in $filelist
do
echo "file found" $q
done