Searching all files that contain pattern

Hello All,

i have to search a pattern in all the files in all subfolders that are present in current directory.

suppose i am in d1 directory and in that sd1,sd2,sd3 are subdirectories.
in
sd1 i have files f1,f2
sd2 i have files f3,f4
sd3 i have file f5

i have to list out all those files in which word "GotIt" is present.
Suppose it is present in f1,f3,f5 file.

Pls give me the command which can list all these 3 file names

Thanks

This question has answered many times earlier...

Could you please search this forum...

i am new to this forum. If u know can you please let me know.

It would great.

Thanks

Here is the link

Would request you to read the forum rules as well...

Have a nice time and hope you will find answers to all your questions.

Hi All,

I'm looking for the UNIX shell script to search a file having some characters within a particular path which intern have many sub folders in it.

Regards
Anil