WC,一下子就联想到公厕了吧?如果没有,那么我们好像不是一代人啊。Shell命令也有这么个wc,它是十分好用的统计文件的命令呢。先看看的帮助,通常这是我们了解shell命令的第一途径。$ wc --help
Usage: wc [OPTION]... [FILE]...
or: wc [OPTION]... --files0-from=F
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -,
read standard input. A word is a non-zero-length sequence of characters
delimited by white space.
The options below may be used to select which counts are printed, always in
the following order: newline, word, character, byte, maximum line length.
-c, --bytes print the byt
...
继续阅读
(14)