码迷,mamicode.com
首页 > 其他好文 > 详细

[Tools] Create Files in the Terminal from the Clipboard with PBPaste

时间:2020-03-23 16:49:15      阅读:72      评论:0      收藏:0      [点我收藏+]

标签:too   copy   you   contents   from   href   and   htm   http   

You‘ll often find yourself going through a tutorial where you need to copy some code from a webpage and create a file and paste the contents onto your local machine. Your terminal has a useful tool called "pbpaste" which allows you to paste contents into a file using a standard redirect.

 

Use:

pbpaste > ./index.html

 

It is built-in with Mac

 

You can also use `pbcopy`, checkout https://langui.sh/2010/11/14/pbpaste-pbcopy-in-mac-os-x-or-terminal-clipboard-fun/

echo Hello World! | pbcopy

 

[Tools] Create Files in the Terminal from the Clipboard with PBPaste

标签:too   copy   you   contents   from   href   and   htm   http   

原文地址:https://www.cnblogs.com/Answer1215/p/12552963.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!