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) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -