Best Answer: How Do I Search for a File Containing a Specific Text in Linux?
Contents How Do I Search for a File Containing Text in Unix? the Grep Command Searches Through the File, Looking for Matches to the Pattern Specified. to Use...
Contents
How do I search for a file containing text in Unix?
The grep command searches through the file, looking for matches to the pattern specified. To use it type grep , then the pattern we’re searching for and finally the name of the file (or files) we’re searching in.
Must Read
How do I grep a specific word in Linux?
Search any line that contains the word in filename on Linux: grep ‘word’ filename. Perform a case-insensitive search for the word ‘bar’ in Linux and Unix: grep -i ‘bar’ file1. Look for all files in the current directory and in all of its subdirectories in Linux for the word ‘httpd’ grep -R ‘httpd’ .