回文章列表
作者Storm.bbs@bbs.sayya.org (風) 看板: linux
標題Re: 如何更改wget下載的檔名?
時間SayYA 資訊站 (2008/04/09 Wed 08:24:24)
※ 引述《handpower.bbs@ptt.cc (衝衝衝)》之銘言:
> 我下這樣的指令
> wget "http://maps.google.com/maps/geo?q=502+W.+Broad+St.+Falls+Church,+VA&out\
> put=csv&key=abcdefg"
> wget下載成功之後的檔名
> geo?q=502+W.+Broad+St.+Falls+Church,+VA&output=csv&key=abcdefg
> 可否在wget直接指定下載的檔名?
> 我查了一下wget manual,似乎不能直接指定下載之後的檔名...
> 請問有人知道如何做嗎?謝謝!

    嗯...我是不知道你看的是哪個 manual,不過 wget 自己的 help 裏面以及
    man(ual) page 裏面都有提到相關的選項吧?

$ wget --help |grep -- '-O'
  -O   --output-document=檔案    將資料寫入指定檔案中

    而 wget 的 manpage 裏面是這麼說的:

       -O file
       --output-document=file
           The documents will not be written to the appropriate files, but all
           will be concatenated together and written to file.  If - is used as
           file, documents will be printed to standard output, disabling link
           conversion.  (Use ./- to print to a file literally named -.)

--
※ Origin: SayYA 資訊站 <bbs.sayya.org> 
◆ From: adsl-070-155-125-254.sip.asm.bellsouth.net
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻