Vidyalelo
Computer Science · Q506

UNIX

Engineering and GATE · Computer Science · question 506

Q506

Which one of the following command will be used for adding two spaces before every line in emp.lst?

A.
sed 's/^/ /' emp.lst
Answer
B.
sed 's / / /'emp.lst
C.
sed 's /$/ /'emp.lst
D.
sed 's/$/

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board