How does wc work in Unix?

How does wc work in Unix?
Answer
Another UNIX command is wc (word count). In its simplest form, wc
reads characters from standard input until end-of-file, and prints to standard output a count of how many lines, words, and characters it has read. It prints the three counts on the same line, each in a field of width 8.
 

Tìm kiếm

Back
Top