rbuhl / wintee

Automatically exported from code.google.com/p/wintee
1 stars 0 forks source link

Option to suppress output to stdout #3

Closed GoogleCodeExporter closed 7 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if there were an option to suppress the additional output
to stdout.

Original issue reported on code.google.com by brian.mi...@gmail.com on 13 Jan 2010 at 4:38

GoogleCodeExporter commented 9 years ago
You should use wtee when you want both outputs - stdout and a file.  If you 
only want
file output, just redirect stdout to a file, like :

DIR *.* > file.ext
or
DIR *.* >> file.ext

One '>' to create (overwrite) a file and two '>>' to append.

Or have I missed the point of the question...?

Original comment by goo...@gmail.com on 17 Feb 2010 at 7:27

GoogleCodeExporter commented 9 years ago
I'm struggling to remember why I thought this was necessary. I was trying to do 
the
equivalent of:

echo Hello World | tee output1.txt output2.txt >NUL

but some Windows peculiarity was keeping the output redirect from working.

In any case, I went another route, and currently don't have the need for this 
option.
I don't see much point in departing from the 1:1 option mapping with tee on 
Linux
unless someone else hits the same stumbling block.

Quite a useful tool, however. Thanks to the author.

Original comment by brian.mi...@gmail.com on 17 Feb 2010 at 8:39