linux-command/command/wc.md

29 lines
623 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

wc
===
统计文件的字节数、字数、行数
## 补充说明
**wc命令** 用来计算数字。利用wc指令我们可以计算文件的Byte数、字数或是列数若不指定文件名称或是所给予的文件名为“-”则wc指令会从标准输入设备读取数据。
### 语法
```
wc(选项)(参数)
```
### 选项
```
-c或--bytes或——chars只显示Bytes数
-l或——lines只显示列数
-w或——words只显示字数。
```
### 参数
文件:需要统计的文件列表。
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->