cwd*_*cwd 16 io filenames curl
我在这种语法中使用 curl:
curl -o myfile.jpg http://mysite.com/myfile.jpg
如果我运行这个命令两次,我会得到两个文件:
myfile.jpg
myfile-1.jpg
Run Code Online (Sandbox Code Playgroud)
如果文件存在,我如何告诉 CURL 我希望它覆盖文件?
cjc*_*cjc 27
用:
curl http://mysite.com/myfile.jpg > myfile.jpg
Run Code Online (Sandbox Code Playgroud)