what does the command 'wc' do?
Answers were Sorted based on User's Feedback
Answer / samrat biswal
wc -l <file_name> will display the number of lines present
in that file or the record count
wc -w <file_name> will display the number of words present
in that file
wc -c <file_name> will display the number of character
present in that file
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / payal
wc command counts the number of lines,words and characters
present in a file.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / amit
wc command generally used for count the no. of words(-w),
counts the no of lines(-l), count the no of character(-c)
example
wc -c<b
where b is the file. wc command check the character from
file b.similrly use the -l at the position of -c then it
counts the no of lines present in the file b.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / abdessa
wc command counts the number of lines,words and characters
present in a file
| Is This Answer Correct ? | 1 Yes | 0 No |
if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.
What are the general commands in using unix os for a beginner?
write grep commands to select the lines that have exactly two characters
How to rename files and folders?
What is a shell in Unix? Name some common Unix shells.
Describe the zip/unzip command using gzip.
How do you move or rename a file or directory?
How do you find path of a directory? Give its syntax.
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
How do I open a port?
what is the function of grep command?
what are the differences between CUI and GUI interfaces?
52 Answers College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,