How to capture Curl output to a file?

前端 未结 7 1087
小蘑菇
小蘑菇 2020-12-12 08:57

I have a text document that contains a bunch of URLs in this format:

URL = \"sitehere.com\"

What I\'m looking to do is to run curl -K

7条回答
  •  清歌不尽
    2020-12-12 09:13

    For those of you want to copy the cURL output in the clipboard instead of outputting to a file, you can use pbcopy by using the pipe | after the cURL command.

    Example: curl https://www.google.com/robots.txt | pbcopy. This will copy all the content from the given URL to your clipboard.

提交回复
热议问题