問題:
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