what does the command 'wc' do?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to display different lines that are found when compare two files?

688


What is the difference between awk and grep?

631


Explain command to display different lines that are found when compare two files?

764


Which command is used to delete all files in the current directory and all its sub-directories?

769


What is the general format of unix command syntax?

781






How do I run a whois command?

691


What are grep patterns?

675


Name the general commands in using unix os for a beginner?

698


What is used to type command?

634


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1069


What command is used to check the current users?

681


How do I run a bash script?

671


What are some command words?

670


What is updatedb?

679


Explain ‘library functions’ with respect to unix commands?

702