find string from the file in somewhere

Posted by lightmanhk on Stack Overflow See other posts from Stack Overflow or by lightmanhk
Published on 2012-06-08T01:32:01Z Indexed on 2012/06/08 4:40 UTC
Read the original article Hit count: 127

Filed under:
|

I want to find a string from some file in subdirectory. Like we are in bundle/. and in bundle/ there are multiple subdirectories and multiple txt files I want to do something like

  find . -type f -exec grep "\<F8\>" {} \;

want to get the file where it contain string < F8 >

this command does work, find the string, but never return filename I hope anyone can give me a better solution to this, like display filename along with the line containing that string

© Stack Overflow or respective owner

Related posts about linux

Related posts about terminal