/ mozey.co / blog

grep

August 1, 2015

🔗 Finding all files containing a text string

grep -rnw '/path/to/somewhere/' -e "pattern"

Create alias to grep search for partial words in current dir

vi ~/.profile
# Grep partial words in current dir
alias g='grep --color=auto -rn . -e'