To only show the file names and not a preview of data add the command line param -l to grep. The below example searches in
Search (Grep) Entire Hard Drive For String
This command will search through your hard drive using the string command piped to the grep command. Swap /dev/sdc for your actual drive which can
Search Inside Text Files With Grep
Grep is too important not to know for Linux sysadmins. Grep is commonly combined with other commands via pipes to search and filter standard output.
How to Use Grep Combined with Standard Output From Other Commands
Grep is often most powerful when examining the output of other shell commands. This example searches the Linux processes from the ps command for apache.