使用 curl 下載單一檔案
來動手練習 curl 常用的選項與旗標吧。這個檔案的網址是用 tinyurl 產生的短網址。因此,你需要加上一個旗標來允許跟隨重新導向的網址。
本練習屬於課程
在 Shell 中進行資料處理
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Use curl to download the file from the redirected URL
curl ___ https://assets.datacamp.com/production/repositories/4180/datasets/eb1d6a36fa3039e4e00064797e1a1600d267b135/201812SpotifyData.zip