grep

Search text using patterns

← All commands

Common Examples

$ grep "pattern" file
$ grep -r "text" .
$ grep -i "case" file
$ grep -n "line" file
$ grep -v "exclude" file