1.

wc command cannot take multiple filenames as arguments.(a) True(b) FalseThis question was addressed to me in semester exam.My doubt is from Counting File Data: wc Command in section Handling Ordinary Files of Unix

Answer»

The correct answer is (b) False

Easy explanation: wc command can take MULTIPLE FILENAMES as arguments. If multiple filenames are specified with wc command then it will produce a separate line of OUTPUT for each file ALONG with an additional line as a TOTAL count for all files specified. For example,



Discussion

No Comment Found

Related InterviewSolutions