今天的内容是linux的wc命令,这个名字很好记。j_0052.gif你也知道?

这个命令很好记,他的功能有限。

wc -c filename:显示一个文件的字节数

wc -m filename:显示一个文件的字符数

wc -l filename:显示一个文件的行数

wc -L filename:显示一个文件中的最长行的长度

wc -w filename:显示一个文件的字数

 -c, --bytes

              print the byte counts


       -m, --chars

              print the character counts


       -l, --lines

              print the newline counts


       --files0-from=F

              read input from the files specified by NUL-terminated names in file F; If F is - then read names from standard input


       -L, --max-line-length

              print the length of the longest line


       -w, --words

              print the word counts


       --help display this help and exit