shell script: recursively find a file with a keyword -


How to obtain all the files with a specific key word in a directory with sub-directories For example, a directory r_dir And subdirectoris d1, and d2 are given, I need to find all the files that "key_word" under r_dir and d1 and d2.

  findstr / spin / c: "key_word" *. * (S = recursive, p = ignore obstacles, I = case-insensitive, Linux / OS X:  
  grep -i -r key_word * (i = case-insensitive, r = Recurse subdirs)  

Comments