How can I find a file by its content on Linux in the command line?
For example, I want to find a file containing the word "helo" on my computer.
migrated from serverfault.com Sep 21 '11 at 11:03
This question came from our site for system and network administrators.
You can create a file named grepall in /usr/local/bin/ with following content:
then you can search for content by use