wget有批次下載的功能嗎 - Linux

By Erin
at 2008-10-17T16:03
at 2008-10-17T16:03
Table of Contents
※ 引述《copnew (newcop)》之銘言:
: 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的指令才可以下載到所有我想要的檔案
: 現在檔案我下載完了
: 但還是很想知道有沒有甚麼方法可以加速我的工作效率
: 謝謝
剛去查了一下wget的man page
其實他的功能相當強大啊
像原po的問題, 用下列的指令就可以了
wget -A .ppt -r -l 1 http://ftp.encntc.edu.tw/Study/
-A .ppt 表示只抓符合 .ppt 的檔案
-r 表示 recursive retrieval
-l 1 表示只抓一層目錄
--
: 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的指令才可以下載到所有我想要的檔案
: 現在檔案我下載完了
: 但還是很想知道有沒有甚麼方法可以加速我的工作效率
: 謝謝
剛去查了一下wget的man page
其實他的功能相當強大啊
像原po的問題, 用下列的指令就可以了
wget -A .ppt -r -l 1 http://ftp.encntc.edu.tw/Study/
-A .ppt 表示只抓符合 .ppt 的檔案
-r 表示 recursive retrieval
-l 1 表示只抓一層目錄
--
Tags:
Linux
All Comments
Related Posts
wget有批次下載的功能嗎

By Ophelia
at 2008-10-17T14:55
at 2008-10-17T14:55
wget有批次下載的功能嗎

By Kristin
at 2008-10-17T14:09
at 2008-10-17T14:09
wget有批次下載的功能嗎

By Gilbert
at 2008-10-17T13:23
at 2008-10-17T13:23
Vmware workstation 灌linux

By Olivia
at 2008-10-17T13:12
at 2008-10-17T13:12
ubuntu的檔案瀏覽器

By Audriana
at 2008-10-17T11:12
at 2008-10-17T11:12