Which one of the following command will be used for adding two spaces before every line in emp.lst?
(a) sed ‘s/^/ /’ emp.lst
(b) sed ‘s / / /’emp.lst
(c) sed ‘s /$/ /’emp.lst
(d) sed ‘s/$/
I got this question in an interview.
Origin of the question is sed command in division Filters using Regular Expressions of Unix