1.

Which one of the following is the correct syntax for performing substitution using sed?(a) sed [address]s/expr1/ expr2(b) sed [address]s/expr1 expr2(c) sed [address]s/expr1/ expr2/ flags(d) sed [address]sI had been asked this question in an interview.This question is from sed command in portion Filters using Regular Expressions of Unix

Answer»

Right ANSWER is (C) sed [address]s/expr1/ expr2/ flags

Best EXPLANATION: Substitution is one of the most IMPORTANT features of sed as it ALLOWS us to replace a pattern in its input with some other pattern. The correct syntax for performing substitution is :



Discussion

No Comment Found

Related InterviewSolutions