1

Which command would search lines 2 through 20 of the file records for the characters 1st and replace them with the characters first?

Correct Answer: sed ‘2,20s/1st/first/’ records

Make the most of this question

This page focuses on one Linux MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

Linux MCQs MCQ: Which command would search lines 2 through 20 of the file records for the characters 1st and replace them with the characters first? | Extra Education