what does the command 'wc' do?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this command do? Cat food 1 > kitty

1069


What is the use of egrep command in unix?

704


Explain how to use grep command to list find the records of a file containing 10 different strings?

683


What do chgrp command do?

701


Can you explain a little bit about command substitution?

710






What is s and g in sed command?

650


What are the commands in UNIX to list the files in a Directory?

695


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


How does shebang work?

688


Differentiate cmp command from diff command.

677


What will the following command do?

698


Explain ‘system calls’ with respect to unix commands?

682


How does pipe () work?

680


What does grep v grep do?

637


Are you in or at the office?

708