wget可以用來抓網頁的html原始檔(source code)
# wget http://192.168.100.100/test.txt
(下載test.txt)
# wget -q
http://192.168.100.100/test.txt
(下載test.txt,而不顯示任何訊息)
# wget -q
http://192.168.100.100/test.txt
(下載test.txt,而不顯示任何訊息)
# wget
-O test123.txt http://192.168.100.100/test.txt
(下載test.txt,但output至檔案test123.txt)
# wget -qO -
http://192.168.100.100/test.txt
(顯示test.txt檔案內容在螢幕上)
另一例:
# wget -qO -
http://192.168.100.100/index.html
(顯示index.html程式碼內容在螢幕上)
沒有留言:
張貼留言