grep - Searching a word/group of words from a list of files in unix -


I want to search for a word event in all files from a given folder and only want to see the list of files I am Tried: - Find-type f -exec grep -l & lt; Keyword & gt; {} \; But I'm getting the entire line of all the keyword's events, it's getting messy.

I also have the grep -hr & lt; "Keyword" & gt; . but giving it to: grep: illegal option - r.

Please help.

make sure what is happening with your grep , but it's okay Works:

  find-type f -exec grep -l {} \: ./br.csv ./combined.csv ./skyscan.csv ./skyscan.db ./team .sql ./uniq.js   

Maybe check that grep is running on you.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -