Computer Science Fundamentals Operating Systems Subjective
Mar 12, 2013

What is use of ‘wc’ command in UNIX system?

Detailed Explanation

‘wc’ command is use to count lines, word and characters depending on the option used. ‘wc’ displays a four-columnar output.
Syntax—
      <prompt> wc <option> <file name>
Ex--
      <prompt>wc data
    3 20 103 data     (Number of lines, words, character)
     <prompt> wc -l data
     3 data         (Number of lines)
     <prompt> wc -w data
     20 data     (Number of words)
     <prompt>wc - c data
     103 data     (Number of characters)

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback