📜  wc bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:11.652000             🧑  作者: Mango

代码示例1
wc(1) - print newline, word, and byte counts for each file

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.

-l, --lines
       print the newline counts