1.

Which option is used for counting the number of words in a file only?(a) -l(b) -W(c) -c(d) -wThis question was addressed to me during an interview.This interesting question is from Counting File Data: wc Command topic in chapter Handling Ordinary Files of Unix

Answer»

The correct OPTION is (d) -w

The explanation: -w option when USED with WC command display only the number of WORDS in the SPECIFIED file.



Discussion

No Comment Found

Related InterviewSolutions