grep is a command-line tool for searching text patterns in files.

The grep utility searches a pattern (regular expression) in a text file. There are many options to control how matches are performed and how to display matches.

External references


Further reading

See also grep on Unix & Linux Stack Exchange for more detailed reading.