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

11 lines
165 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.

```
printf <format> [arguments] # 打印格式化数据formatarguments是format里的参数
```
#### 示例
```
printf "%s\n" $PWD # 打印出当前路径
```