Which one of the following is the correct syntax for performing substitution using sed? s /expr1/ expr2 b) sed s /expr1 expr2 c) sed s /expr1/ expr2/ flags d) sed s

Which one of the following is the correct syntax for performing substitution using sed? s /expr1/ expr2 b) sed s /expr1 expr2 c) sed s /expr1/ expr2/ flags d) sed s Correct Answer address

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 : sed s /expr1/ expr2/ flags where address represents the line numbers where we want to perform the substitution. expr 1 and expr2 are expressions in which expr1 is replaced with expr2 flags are used for implementing the global or local replacement policy

Related Questions

For the given syntax of sed, which among the following is not a correct option? General syntax of sed: /pattern/action
Which function returns NULL if expr1 = expr2?