Linux – What’s a simple method to dump pipe input to a file? (Linux)

eximlinuxpipe

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?

Best Solution

The unix command tee does this.

man tee