I was trying to find files in sub-directory that that has a substring and print the files and the lines. But my command only catch files that contains the whole word. Could you please let me know why and correct me?
For example, some my files contain the "my_isr" word.
Working command (print files and lines):
grep -rnw . -e "my_isr"
Non-working command (no matched files):
grep -rnw . -e "isr"