How to grep recursively through sub-directories on Linux or Unix
https://www.tachytelic.net/2019/01/grep-recursively/
How to grep recursively -r means to recurse “text_to_find” is the string to search for The dot simply means start the search from the current working directory. You could easily replace that with “/etc” for example: ... I always like to use grep -rn because it shows the line number also: Note line numbers are added with -n option To search within particular file types: grep -rn "eth0" --include="*.conf" /etc/
-r means to recurse
“text_to_find” is the string to search for
The dot simply means start the search from the current working directory. You could easily replace that with “/etc” for example: ...
I always like to use grep -rn because it shows the line number also: Note line numbers are added with -n option
To search within particular file types: grep -rn "eth0" --include="*.conf" /etc/
DA: 38 PA: 60 MOZ Rank: 19