Which command outputs the word count of the file 'infile' and redirects it into 'newfile'?

Choose the correct answer

Explanation

Option A uses the correct syntax to count words in 'infile' and redirect the output to 'newfile'. Option B counts words in 'newfile' instead. Option C is invalid due to incorrect use of the dash. Option D attempts to pipe output to a filename, which is not a valid command.

Which command outputs the word count of the file 'in… — Basic of linux unix | PakQuizHub