using grep with -r option
I have on my desktop around five java files. I also created a java file in directory Viti, located in desktop.
Since all java files contain string "class", I practice my usage of grep with the following:
grep class *.java
and this works fine. However, when I type the following:
grep -r class *.java
rgrep class *.java
I expect to be shown the file that's located in my Viti directory, too, but it won't show it. Please tell me what I am missing.