001、统计字符数(包括空格和换行符)
[root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试文件 ad t d [root@pc1 test]# wc -c a.txt ## wc -c命令统计字符数,包含换行符和空格 7 a.txt
001、统计字符数(包括空格和换行符)
[root@pc1 test]# ls a.txt [root@pc1 test]# cat a.txt ## 测试文件 ad t d [root@pc1 test]# wc -c a.txt ## wc -c命令统计字符数,包含换行符和空格 7 a.txt