How to grep recursively for xml files

To grep recursively we need the -r flag.

To get only the file name we use the -l flag

To get only files with extention .xml  we use the ‘–include’ flag and don’t forget to escape the spcial character with the ‘\’



1
grep -rl --include \*.xml "MARTIN" .