I have a directory with a project:
-rw-r--r-- 1 dani staff 18K Mar 4 06:54 LICENSE
-rw-r--r-- 1 dani staff 1023 Mar 29 08:06 Makefile
-rw-r--r-- 1 dani staff 129 Mar 2 15:33 README.md
-rw-r--r-- 1 dani staff 528 Mar 14 16:05 TODO
drwxr-xr-x 3 dani staff 102 Mar 29 08:09 bin
drwxr-xr-x 4 dani staff 136 Mar 25 12:19 examples
drwxr-xr-x 5 dani staff 170 Mar 2 15:35 nbproject
drwxr-xr-x 4 dani staff 136 Mar 4 06:54 src
I need to find a function iniciarEjecucion
, I found information about a command that I can use.
- grep
Then I proceeded to look for the text:
grep iniciarEjecucion *
And he throws me the following error:
grep: bin: Is a directory
grep: examples: Is a directory
grep: nbproject: Is a directory
grep: src: Is a directory
Is it necessary to enter each directory to search for a text with grep
?
That is, my question is:
How can I search for a text, in multiple directories?
I hope you can help me.