Linux search inside files

In this article let’s discuss about Linux search inside files. Let’s go through the following methods without any delay.

Method 1:

$ grep -r "String to be searched goes here" *

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

grep -Rl "search-term"

Hope the above solution works.

Realted Posts : Github commit author name