您的位置:首页 > 运维架构 > Linux

Linux命令-wc

2016-09-07 12:27 211 查看
wc命令用于统计指定文本的行数、字数、字节数

格式:wc [参数] 文本

[root@localhost test]# wc test.txt
6 14 79 test.txt
[root@localhost test]# cat  -n test.txt
1  linux is good
2  python is good
3  hello world hello world
4  hello linux
5
6  hello python
[root@localhost test]#


参数解释

-l    只显示行数
-w    只显示单词书
-c    只显示字节数
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: