LoginSignup
24
25

More than 5 years have passed since last update.

wgetを使ってリストにあるファイルをまとめて取得する。

Posted at

以下のようなファイルをあらかじめ用意する。

url1
url2
url3

このファイルをrequirements.txtとする。
このファイルを置いたフォルダで、以下のコマンドを実行するとurl1、url2、url3を順番にダウンロードする。

wget -i requirements.txt

wgetは標準入力から取得先のURLを取得することもできるので、以下のようなことも可能。

cat requirements.txt | wget -i -

これをうまく使うと環境構築がだいぶ楽になる。

24
25
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
24
25