UGC-NET | UGC NET CS 2015 Dec – III | Question 57
What will be the output of the following Unix command ?
$rm chap0\[1 – 3\]
(A) Remove file chap0[1 – 3]
(B) Remove file chap01, chap02, chap03
(C) Remove file chap\[1 – 3\]
(D) None of the above
Answer: (A)
Explanation: $rm chap0\[1 – 3\]
Square bracket surround a choice for single character and hyphen(-) will separate the range of single character.
Above command will remove chap 01 or chap 02 or chap 03 file.
So, option (A) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.