linux - 喂入 pv 并写入日志文件不起作用

标签 linux bash get xargs

因此,我尝试将文件的输出(使用 get 检索)提供到日志文件中。

我拥有的是这样的:

 get whateverfile | pv > somefile.log

我也尝试过用 xargs 来喂养它:

 get | pv whateverfile > somefile.log

想法?提前致谢!

最佳答案

来自:http://www.cyberciti.biz/open-source/command-line-hacks/pv-command-examples/

pv -选项输入文件|命令1 | pv -选项 > 输出.文件

所以在你的情况下,类似:

pv 输入文件 |得到 | pv > somefile.log

注意:代码未经测试。

关于linux - 喂入 pv 并写入日志文件不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31463781/

相关文章:

android - 改造:@GET 命令中的多个查询参数?

linux - 如何在 Kestrel/linux 托管的 aspnet core 3.1 上配置签名 SSL 证书

bash 序列 00 01 ... 10

linux - awk 循环处理不同的文件

bash - 通过 tail 通过 tail 和 head 传输文件

php - $_GET 复选框值在搜索结果中的 $_POST 之后未更新?

iphone - http GET 限制(iPhone)

linux - poll(2) 不会清空事件队列

linux - 按分钟聚合文件中的行

c - 为什么后台进程成功执行一段时间后会被中断? (退出代码 248)