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

Which unix command to make a new directory?

581


Is command prompt unix?

570


What is time_t?

578


What is difference between grep and find command in unix?

570


What do chmod command do?

596






What does 'mkdir' command do in UNIX?

649


What is the use of the tee command?

585


What are file commands?

644


How do you grep recursively?

545


What are the differences among a system call, a library function, and a unix command?

559


What do chgrp command do?

582


What are filter commands in unix?

546


How do you repeat a command in terminal?

585


What is command substitution?

615


Enlist some filename manipulation commands in unix.

540