shellspells beta

grep

grep [OPTIONS] PATTERN [FILE...]
grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...]

grep Search the input for lines containing the given pattern.

Stands for Global Regular Expression Print. An absolutely essential utility.

Examples

See if a process is running

$ ps -ef | grep nautilus
garry     8190  8082  0 22:03 ?        00:00:03 nautilus