Search for string in files and only return the matching file names

fgrep -l "searchForString" *
ctt_1.xml
ctt_2.xml
ctt_4.xml
ctt_5.xml

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp