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 |
What is the difference between cat command and more command?
How we will execute previous command in vi editor?
What is $0 bash?
what is the significance of "su" command?
What does the command '$ls | wc –l > file1' do?
What is a command and examples?
What is the pipe command?
their is a file1,file2 and i want to append file1 data to file2?
How to use grep command to list find the records of a file containing 10 different strings?
What is the comma to show the space allocation of files?
How to check the flavor of UNIX?
How to add content of one file into another file at the beginning