# fmt

读取文件后优化处理并输出

## 补充说明

**fmt命令** 读取文件的内容，根据选项的设置对文件格式进行简单的优化处理，并将结果送到标准输出设备。

### 语法

```
fmt(选项)(参数)
```

### 选项

```
-c或--crown-margin：每段前两列缩排；
-p<列起始字符串>或-prefix=<列起始字符串>：仅合并含有指定字符串的列，通常运用在程序语言的注解方面；
-s或--split-only：只拆开字数超出每列字符数的列，但不合并字数不足每列字符数的列；
-t或--tagged-paragraph：每列前两列缩排，但第1列和第2列的缩排格式不同；
-u或--uniform-spacing：每列字符之间都以一个空格字符间隔，每个句子之间则两个空格字符分隔；
-w<每列字符数>或--width=<每列字符数>或-<每列字符数>：设置每列的最大字符数。
```

### 参数

指定要优化格式的文件。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/fmt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
