How Do I Find All Files Containing Specific Text on Linux?
Contents How Do I Search for Files Containing Specific Text in Linux? to Find Files Containing Specific Text in Linux, Do the Following. Open Your Favorite...
Contents
How do I search for files containing specific text in Linux?
To find files containing specific text in Linux, do the following.
- Open your favorite terminal app. XFCE4 terminal is my personal preference.
- Navigate (if required) to the folder in which you are going to search files with some specific text.
- Type the following command: grep -iRl “your-text–to-find” ./
How do I find all files containing specific text on Unix?
How do I find all files containing specific text on Linux?
- -r – Recursive search.
- -R – Read all files under each directory, recursively. …
- -n – Display line number of each matched line.
- -s – Suppress error messages about nonexistent or unreadable files.