[zhenan@kael236 ~]$ echo this is test |wc -l #行数
1
[zhenan@kael236 ~]$ echo this is test |wc -c #字符数
13
[zhenan@kael236 ~]$ echo this is test |wc -w #字数
3
[zhenan@kael236 ~]$ echo this is test |wc #默认都输出
1 3 13
[zhenan@kael236 ~]$
wc 计算行数、字数、字节数
最新推荐文章于 2022-06-11 10:08:24 发布