# grep, egrep, cut, sed, sort, uniq, diff, awk — grep Used to search for a specific string or pattern in a file or multiple files. Example: grep "error" log.txt # searches for the string "error" in the file log.txt
grep -rnw '/path/to/somewhere/' -e 'pattern'
-r or -R is recursive,
-n is line number, and
-w stands for match the whole word.
-l (lower-case L)…