Get Matching Filenames As Output From Grep
Last updated
Was this helpful?
Last updated
Was this helpful?
Standard use of the outputs the lines that match the specified pattern. You can instead output just the names of the files where those matches occur. To do this, include the -l
flag.
This recursive grep finds all the files where hashrocket
appears. It only looks for the first match in a file, so each file will only be listed once even if there may have been multiple matches.
See man grep
for more details.