16 command-line-interface curl
我正在尝试使用脚本获取 curl 来下载文件并将其保存到某个目录。我下载了它,但我不知道如何从脚本中将它下载到某个目录。它通常只是将其保存到当前工作目录。
Mik*_*ike 17
curl http://google.com > /path/to/dir/index.html
Run Code Online (Sandbox Code Playgroud)
更正:
您可以使用
-o, --output FILE 将输出写入而不是 stdout
curl --url https://google.com --output /any/file-location
归档时间: |
|
查看次数: |
69548 次 |
最近记录: |