Multiple choice technology operating systems

Command to display lines that match a pattern ?

  1. find

  2. awk

  3. sed

  4. grep

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

grep (Global Regular Expression Print) is the Unix/Linux utility designed to search for patterns (using regular expressions) in files and display matching lines. While tools like awk and sed can also perform pattern matching, grep is the specialized command for this specific task.