LoginSignup
6
3

More than 5 years have passed since last update.

ターミナル(Curlコマンド)で連番のファイルをまとめてDLする方法

Posted at
curl -O "http://example.com/[001-100].jpg"

連番の場合はダブルクォーテーションが必要
Oのオプションを使えば保存できます。
oの場合はファイル名を指定する。Oはそのファイル名のまま保存。

ファイル名が重複してしまう場合には小文字のoオプションを使って

curl -o test#1 "http://example.com/[001-100].jpg"

のようにすれば自動でファイル名が適用されます。

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3