Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 1 (Q.No. 9)
9.
Which command sends the word count of the file infile to the newfile.
Discussion:
5 comments Page 1 of 1.
Rishab said:
10 years ago
Agreed with @Rohit.
I was going to say the same thing also. A and B are both correct.
And also we need wc-w.
I was going to say the same thing also. A and B are both correct.
And also we need wc-w.
Rohit said:
1 decade ago
wc <infile >newfile.
It can also be used to copy word count,line number and characters to newfile.
So option A and B both is right.
It can also be used to copy word count,line number and characters to newfile.
So option A and B both is right.
Abd said:
1 decade ago
Why not wc infile | newfile?
Narayanan said:
1 decade ago
But wc -w infile>newfile option is not present.
Siva Rajesh said:
1 decade ago
wc command gives other details like number of lines and characters.
"wc -w" will give the exact number of words of a file.
So for the above question the correct answer is,
wc -w infile>newfile
"wc -w" will give the exact number of words of a file.
So for the above question the correct answer is,
wc -w infile>newfile
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers