[問題] wget有批次下載的功能嗎

看板Linux作者 (newcop)時間15年前 (2008/10/17 13:23), 編輯推噓6(603)
留言9則, 8人參與, 最新討論串1/5 (看更多)
http://ftp.encntc.edu.tw/Study 上面這個網站有一些我想要的PPT資料 假如說我要抓的資料網址為 http://ftp.encntc.edu.tw/Study/CH01.ppt ........................ http://ftp.encntc.edu.tw/Study/CH30.ppt 我試著用以下指令 wget -c http://ftp.encntc.edu.tw/Study/CH0[1-9].ppt wget -c http://ftp.encntc.edu.tw/Study/CH1[0-9].ppt wget -c http://ftp.encntc.edu.tw/Study/CH2[0-9].ppt wget -c http://ftp.encntc.edu.tw/Study/CH30.ppt 可是實際上wget 並不支援萬用字元 導致我必須連續執行30次wget的指令才可以下載到所有我想要的檔案 現在檔案我下載完了 但還是很想知道有沒有甚麼方法可以加速我的工作效率 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.94.14

10/17 13:28, , 1F
還有其他可以選阿,像aria跟curl
10/17 13:28, 1F

10/17 13:32, , 2F
寫script
10/17 13:32, 2F

10/17 13:33, , 3F
寫個script不就解決了@____@
10/17 13:33, 3F

10/17 13:42, , 4F
for i in `seq 1 30`; do wget http://.../CH$i.ppt; done
10/17 13:42, 4F

10/17 14:05, , 5F
用wget的mirror功能吧
10/17 14:05, 5F

10/17 14:08, , 6F
寫script
10/17 14:08, 6F

10/17 14:09, , 7F
wget 0{1..9}.xxx; wget {10..99}.xxx
10/17 14:09, 7F

10/17 14:10, , 8F
這是 bash 的 expansion
10/17 14:10, 8F

10/22 23:06, , 9F
expansion這招不錯,而且簡單易懂
10/22 23:06, 9F
文章代碼(AID): #18-24xnp (Linux)
文章代碼(AID): #18-24xnp (Linux)