Which of the following command is used to count just the number of lines contained in a file? (a) wc - r (b) wc - w (c) wc - w (d) wc - 1
Answers
Answered by
4
(a). WC - r is the command.
Answered by
2
" The question lacks context in which it is asked. On answering the question assuming that it has been asked in reference to linux shell script.
The command used to count just lines number in the file is wc -l. ‘-l’ denotes the lines in the specified file and ‘wc’ is the word count.
“None of the given options are correct” since there might be some typography error in the fourth option.
"
Similar questions