how to use grep to find a string in multiple files code example
Example 1: linux search for line in file
grep -R "keyword" /directory/
Example 2: grep in multiple files
grep -E 'fatal|error|critical|failure|warning|' *.log
grep -R "keyword" /directory/
grep -E 'fatal|error|critical|failure|warning|' *.log