加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

wget 返回值 输出到stdout

(2014-02-11 19:34:46)
http://hi.baidu.com/firefly0927/item/cfc7f671df817f3d6cc37c0c

wget默认动作,是将目标URL的应答保存成文件。
如果想将应答直接打印在控制台上,可使用下列参数:

wget -q -O- /wget -qO-

 

注:

-q: quiet模式,屏蔽request header信息的回显 。
-O: 指定输出文件,后面加-,就定向为控制台了。


-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 -.)





wget 使用

http://www.cnblogs.com/wangkangluo1/archive/2012/04/17/2453946.html


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有