Categories
Linux

Linux: grep command to find stuff inside files

grep -r “the phrase or word you are looking for…” src/main/webapp/*

If you want to exclude certain string from the results:

(first grep here) | grep -v “error.log”