You can use the Grep command with a few options to achieve this:
$
How to Find All Files Containing Specific Text on Linux | Linux Quick Tips
$
grep -Ril "specific_text" directory
- R option search recursively in subdirectories and in symbolic links
- i option is for case-insensitive search
- l option will print only the name of the files instead of printing the matching lines
How to Find All Files Containing Specific Text on Linux | Linux Quick Tips
No comments:
Post a Comment