将管道输入转储到文件中的简单方法是什么? (Linux) [英] What's a simple method to dump pipe input to a file? (Linux)

查看:115
本文介绍了将管道输入转储到文件中的简单方法是什么? (Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个小的shell脚本,该脚本将把所有通过管道传输的脚本,然后将其转储到文件中,以进行电子邮件调试.有什么想法吗?

I'm looking for a little shell script that will take anything piped into it, and dump it to a file.. for email debugging purposes. Any ideas?

推荐答案

unix命令tee可以做到这一点.

The unix command tee does this.

man tee

这篇关于将管道输入转储到文件中的简单方法是什么? (Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆