DEV Community

Discussion on: Root to Linux: Search Files with Grep

Collapse
 
raymiles94 profile image
RayMiles

how to search inside files
for example i want to found word "garden" in files with extension end with .xml ?

Collapse
 
coffeecraftcode profile image
Christina Gorton

There are a lot of different answers to this depending on how much information you have before searching.
If you know what folder the files are in you can use the -r flag like the example in this article.

If you are not sure what folder to search in, I would try some of the commands suggested here: stackoverflow.com/questions/169568...