The grep command searches one or more input files for lines containing a match to a specified pattern. By default, grep prints the matching lines.