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