Find filename in the given directory

Hi ,

I have question for search the filename in directory.

For example my DIR contains these files...
testA123.txt
testB123.txt
testB345.txt
testA345.txt

i want to show the filenames which contains 'testA7'...

Help me

ls + grep 
for file in *testA7*

Thanks

I am using like
code : ls grep *testA*
its working but error also coming with the answer....
please tel the exact code....

Use shell expansion instead of ls + grep. You save calling extra processes.

find . name "testA" -type f

Containing or starting with. IOW: ls *testA7*.txt or ls testA7*.txt

cd your directory

ls | grep testA7