在Mac OS怎样吧文件内容放到剪贴板

当然,我们可以用编辑器打开,然后cmd + A, cmd + c。如果文件比较大,也可以用CLI

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cat ~/Desktop/ded.html | pbcopy
cat ~/Desktop/ded.html | pbcopy
cat ~/Desktop/ded.html | pbcopy

还可以重新从剪贴板输出

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
pbpaste > path/of/output/file
pbpaste > path/of/output/file
pbpaste > path/of/output/file

Leave a Comment

Your email address will not be published.