Linux命令 wc

查看一个文件有多少行、多少字、多少字节

$ wc [-lwm]

选项与参数:
  -l :仅列出行;
  -w :仅列出多少字(英文单字);
  -m :多少字符;

1 $ cat tt.txt
2 declare -x HISTCONTROL="ignoredups"
3 declare -x HISTSIZE="1000"
4 declare -x HOME="/home/dmtsai"
5 declare -x HOSTNAME="study.centos.vbird"
6 $ wc tt.txt
7   4  12 135 tt.txt
原文地址:https://www.cnblogs.com/yangxiaoling/p/10546690.html