1.

For escaping the newline character we can use ____(a) /(b) \(c) ?(d) \nI got this question at a job interview.Origin of the question is Pattern Matching, Escaping and Quoting in portion The Shell of Unix

Answer»

Correct answer is (b) \

The best I can explain: The newline character is also special, it marks the end of the COMMAND line. Some command lines that uses several arguments can be long ENOUGH to OVERFLOW to the next line. To split the WRAPPED line into two lines, MAKE sure you input a \ before pressing [Enter].



Discussion

No Comment Found

Related InterviewSolutions