Quantcast
Viewing all articles
Browse latest Browse all 23

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" .



The post How to grep recursively for xml files appeared first on Martin Fournier.


Viewing all articles
Browse latest Browse all 23

Trending Articles