Search code examples
linuxpipeexim

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


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?


Solution

  • The unix command tee does this.

    man tee