Grep and Return a List of Matching Files

The following command is perhaps the one I use the most on Linux systems —

$ grep -rl "search string" .

Note the fullstop at the end to specify the current directory. Great for searching for an error message in your log files or where a configuration setting lives in your PeopleSoft home directory.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License