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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -