LoginSignup
14

More than 5 years have passed since last update.

Terminalで連番ダウンロード

Posted at

たまに使いたい。でもわざわざアプリ入れるのもあれなので。

curl -O "http://hoge.com/[01-09].jpg"

これで同じファイル名で連番保存できます。
保存先を指定したい場合は、そのディレクトリに移動しましょう。

なお、ファイル名を指定したい場合は以下。

curl -o fuga-#1.jpg "http://hoge.com/[01-09].jpg"
fuga-01.jpg
fuga-02.jpg
fuga-03.jpg
~中略~
fuga-09.jpg

忘れては調べ、調べては忘れる… 人間とは忘れる生き物ですよね。

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
14