You probably already know how to use the grep
command to search for a text string in a file on Linux. But what if you want to retrieve a list of files that contain the text string? This is a task best suited for grep
or the find command. We'll show you how to do it in this guide.
This is a companion discussion topic for the original entry at https://linuxconfig.org/find-all-files-containing-specific-text