Article 6H0AT grep both boolean and recursive

grep both boolean and recursive

by
chiendarret
from LinuxQuestions.org on (#6H0AT)
I am interested in using grep to find the occurrence of two words in a directory comprising sub-directories and their regular files. Example

francesco@vaio:~/softw/CHARMM_FF$ grep -E 'OC2D1.*NONBONDED | NONBONDED.*OC2D1' ~/softw/CHARMM_FF

where CHARMM_FF is such a directory. Could '-r' be added somewhere, or what else?
Thanks
chiendarret
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments