1.

Which of the following characters are used with sed as anchoring characters?(a) $(b) ^(c) %(d) $ and ^The question was asked in an interview for internship.I would like to ask this question from sed command topic in portion Filters using Regular Expressions of Unix

Answer»

Correct ANSWER is (d) $ and ^

Explanation: We can use the anchoring characters, ^ and & with the same meaning. They are USED as sole characters in the SOURCE pattern to REPLACE the target pattern at that location. For EXAMPLE,



Discussion

No Comment Found

Related InterviewSolutions