使用 curl 下载单个文件
现在用 curl 实操一下常用的选项和标志。给定文件的 URL 使用了 tinyurl 的短链接。因此,您需要补全一个选项标志来允许跟随重定向的 URL。
本练习是课程的一部分
Shell 中的数据处理
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Use curl to download the file from the redirected URL
curl ___ https://assets.datacamp.com/production/repositories/4180/datasets/eb1d6a36fa3039e4e00064797e1a1600d267b135/201812SpotifyData.zip