InterviewSolution
Saved Bookmarks
| 1. |
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 |
|
Answer» CORRECT choice is (a) SED ‘s/^//’ emp.lst Easy EXPLANATION: The ^ symbol is used for prefixing some VALUE at the beginning of any line in the file. |
|