curl替换'wget -O'或如何用curl定义目标文件

use*_*840 3 curl wget

我使用curl时遇到问题.我希望有一个curl的替代品

wget -O file 
Run Code Online (Sandbox Code Playgroud)

要么

wget --output-document=file
Run Code Online (Sandbox Code Playgroud)

我已经搜索了联机帮助页和谷歌,但没有找到合适的替代品.或者有人知道如何在curl中定义targetfiles

谢谢你的帮助.

jør*_*sen 5

简单,简单.

curl http://google.com >output.html
Run Code Online (Sandbox Code Playgroud)

要么

curl -o output.html http://google.com/
Run Code Online (Sandbox Code Playgroud)

(而且我确信阅读curl --help比花在SO上的时间要少.)