本帖最后由 依山居 于 2015-11-17 14:21 编辑
wc 统计行数
http://batch-cn.qiniudn.com/s/tool/index.html- o( ̄▽ ̄)o 2015/11/17 周二14:19:32.75 <( ̄︶ ̄)>
- c:\>wc t.txt
- 1 1 7 t.txt
-
- o( ̄▽ ̄)o 2015/11/17 周二14:20:34.03 <( ̄︶ ̄)>
- c:\>wc --help
- Usage: wc [OPTION]... [FILE]...
- Print byte, word, and newline 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.
- -c, --bytes print the byte counts
- -m, --chars print the character counts
- -l, --lines print the newline counts
- -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
-
- Report bugs to <bug-textutils@gnu.org>.
复制代码
|