- To use a Color GREP to only highlight matched patterns but not otherwise change the output:
grep --color=always -e "^" -e "hello" testfile
- Find a pattern in all files
grep -rnw '/path/to/somewhere/' -e 'pattern'
* -r or -R is recursive,
* -n is line number, and