Wednesday, February 18, 2015

Piping Linux command line output to multiple commands or multiple files

Here’s what I found that answered this:


http://ift.tt/1hoJanU


command | tee >(next command) >outputfile


The key is to pipe the output to “tee” and then effectively you just list all the programs or files you want the output to go to.





No comments:

Post a Comment