On Feb 1, 2008, at 5:41 PM, Andrew McNabb wrote:

I have a new favorite feature in zsh: multios

You can redirect output multiple times; it's like an implicit tee but
more powerful.  For example.

some_command >output-file |cat

will send standard output to output-file AND write it to the terminal.
For more info, do "man zshall" and look at the MULTIOS section.

That's so cool.


And now I know why that happened yesterday, and knowing is half the battle.

Scott

PS It was something like 'ruby hi.rb 2&>1 | less' and I had the output in less and a file called 1.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to