LPI Exam Questions

Which command displays the lines in a file that match a pattern?

Which command displays the lines in a file that match a pattern?

A.
cat

B.
grep

C.
history

D.
cp