wc

wc 命令

命令简介:

简单小巧的计数工具,wc命令用于统计并输出一个文件中行、单词和字节的数目.

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 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
  --version  output version information and exit

你可能感兴趣的:(wc)