Examveda
Examveda

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

A. sed 's/director/manager/' emp.lst

B. sed '1-5s/director/manager/' emp.lst

C. sed '1,5s/director/manager/' emp.lst

D. sed '15s

Answer: Option C


This Question Belongs to Computer Science >> Unix

Join The Discussion

Related Questions on Unix