Q:

To replace the string ‘director’ in the first five lines of file emp.lst with ‘manager’ we can use _____

0

To replace the string ‘director’ in the first five lines of file emp.lst with ‘manager’ we can use _____


  1. sed ‘s/director/manager/’ emp.lst
  2. sed ‘1-5s/director/manager/’ emp.lst
  3. sed ‘1,5s/director/manager/’ emp.lst
  4. sed ‘15s

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(c).sed ‘1,5s/director/manager/’ emp.lst

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

UNIX - FILTERS AND REGULAR EXPRESSIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of the following characters are used with se... >>
<< Which one of the following command is used for rep...