1.

Providing a backslash (\) before the wild card to remove its special meaning is called _____(a) escaping(b) quoting(c) listing(d) pattern matchingI had been asked this question in an online quiz.My doubt stems from Pattern Matching, Escaping and Quoting in portion The Shell of Unix

Answer»

Correct option is (a) escaping

Explanation: We KNOW that SHELL uses some special characters to match filenames or perform other search and replace operations. But if the filename itself contains those special characters, then it could be a great nuisance. For DEALING with such files we use escaping and quoting.

Escaping means providing a backslash (\) before the wild card so that its special meaning could be removed. For EXAMPLE, if we want to remove a file named chap*, then using the command rm chap* will DELETE all the file beginning with a prefix ’chap’. In this situation, we can use the following command,



Discussion

No Comment Found

Related InterviewSolutions