How to capture Curl output to a file?

前端 未结 7 1079
小蘑菇
小蘑菇 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:08

    curl -K myconfig.txt -o output.txt 
    

    Writes the first output received in the file you specify (overwrites if an old one exists).

    curl -K myconfig.txt >> output.txt
    

    Appends all output you receive to the specified file.

    Note: The -K is optional.

提交回复
热议问题