所以我试图将文件的输出(使用get检索)输入到日志文件中。
我拥有的是:
get whateverfile | pv > somefile.log
我也试过用xargs喂它:
get | pv whateverfile > somefile.log
思考?提前谢谢!
答案 0 :(得分:0)
来自:http://www.cyberciti.biz/open-source/command-line-hacks/pv-command-examples/
pv -options input.file | command1 | pv -options> output.file
所以在你的情况下,像:
pv input.file |得到| pv> somefile.log
注意:代码未经测试。