Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 1 (Q.No. 12)
12.
Which of the following files will displayed by this command cat *ch*
Discussion:
5 comments Page 1 of 1.
Ian said:
10 years ago
The * does not enumerate files starting with. @Nitn is exactly correct. The answer is wrong.
DEEPAK said:
10 years ago
Answer should be none of the above. Because cat is used to create a file with some contents.
Nitn said:
1 decade ago
C option is incorrect. * does not match A. At the start of a string (file name).
Tom Liddle said:
1 decade ago
Any files that have a string of (in this example) ch will be displayed. Each of the answers in A, B & C, contain that string so 'All Of The Above' is correct.
Priya said:
1 decade ago
The asterisk on either sides of ch states that any number of characters can be present on its LHS and RHS. So all three come under this category.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers