Question

What is the primary function of the 'grep' command in Linux/Unix?

A To permanently delete lines matching a specified pattern from a file
B To change the file permissions of files matching a specified naming pattern
C To compress a file using a pattern-based compression algorithm
D To count the total number of files in a directory matching a naming pattern
E To search for lines matching a specified pattern within one or more files and display those matching lines
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)