Question

Which command will read input line-by-line from a file in a shell script?

A while read line; do ... done < filename
B cat filename | while read line
C Both A and B
D readline filename
E read < filename
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)