1.

What is the correct syntax for using sed?(a) sed options file(s)(b) sed options ‘action’(c) sed options ‘address action’ file(s)(d) sed ‘action’ file(s)The question was posed to me in an interview for job.This is a very interesting question from sed command topic in portion Filters using Regular Expressions of Unix

Answer»

Right answer is (c) SED options ‘address ACTION’ file(s)

To explain I would say: sed is a MULTIPURPOSE tool which performs the function of several filters together. It can even MANIPULATE characters in the file. The SYNTAX for using this tool is:

sed options ‘address action’ file(s)



Discussion

No Comment Found

Related InterviewSolutions