tldr/pages.zh/osx/pbcopy.md

12 lines
225 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# pbcopy
> 将标准输出放入剪贴板(命令行里的 cmd + C
- 将文件的内容放入剪贴板:
`pbcopy < {{文件}}`
- 将命令的执行结果放入剪贴板:
`find . -type t -name "*.png" | pbcopy`