Synopsys interview question

What does the grep command do in Linux?