How to make 'grep' work like in Ubuntu?
When the -R option is used, MacOS grep requires you to explicitly give it a directory to search; for example, specify . to recursively search the current directory:

grep -R 'networks' .