问题:
In a shell script, I want to download a file from some URL and save it to a specific folder.在 shell 脚本中,我想从某个 URL 下载文件并将其保存到特定文件夹。 What is the specific CLI flag I should use to download files to a specific folder with the curl
command, or how else do I get that result?我应该使用curl
命令将文件下载到特定文件夹的特定 CLI 标志是什么,或者我如何获得该结果?
解决方案:
参考一: https://stackoom.com/question/16ebi参考二: Save file to specific folder with curl command