Search standard output (i.e. a stream of text)

$ grep [options] search\_string

Search for an exact string in file:

$ grep [options] search\_string path/to/file

Print lines in myfile.txt containing the string "mellon"

$ grep 'mellon' myfile.txt

Wildcards are accepted in filename.

Comments