第三、wc
wc testfile
6 6 37 testfile
6行 6个单词 37个字阶

wc -l testfile 统计testfile的行数
![]()
wc -w testfile 统计testfile的单词数
![]()
wc -m testfile 统计testfile的字符数
wc -c testfile 统计testfile的字节数
ASCII码下1个字符占以字节

本文详细介绍了Linux下wc命令的使用方法,包括如何统计文件的行数、单词数、字符数及字节数。通过实例演示了wc命令的不同选项,如wc-l、wc-w、wc-m和wc-c的具体应用。
第三、wc
wc testfile
6 6 37 testfile
6行 6个单词 37个字阶

wc -l testfile 统计testfile的行数
![]()
wc -w testfile 统计testfile的单词数
![]()
wc -m testfile 统计testfile的字符数
wc -c testfile 统计testfile的字节数
ASCII码下1个字符占以字节

1881
2370

被折叠的 条评论
为什么被折叠?