March 2012
Beginner to intermediate
230 pages
7h 27m
English
wc — stdin stdout - file -- opt --help --version
wc [options] [files]
The wc (word count) program
prints a count of bytes, words, and lines in (presumably) a text
file.
$ wc myfile 24 62 428 myfile
This file has 24 lines, 62 whitespace-delimited words, and 428 bytes.
|
|
Print the line count only. |
|
|
Print the word count only. |
|
|
Print the byte count only. |
|
|
Locate the longest line in each file and print its length in bytes. |
Read now
Unlock full access