computer_knowledge_notes/Software/文本转换/head.md

14 lines
324 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.

输出文件的前面部分
```
head [options] [files]
```
#### 选项
```
-c, --bytes=[-]NUM # 打印出前NUM个字节的内容若带前导的'-'则打印除最后NUM个字节的所有内容
-n, --lines=[-]MUM # 打印前NUM行的内容(默认前10行),若带前导的'-'则打印除最后NUM行的所有内容
```