home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMOSUG-L] Re: [NMLUG] Random questions #26



On Fri, 2004-11-12 at 07:31, Wesley J Landaker wrote:
> On Thursday, 11 November 2004 18:55, Sarang wrote:
> > % Can I pipe one program's stdout to 2 programs at the same time? [1]
> $ echo test | tee >(cat > cat.out) | wc > wc.out

This can be simplified a little bit.  Tee by default forks standard out
to a file and standard out, so you could just do this:

echo test | tee  echo.out | wc > wc.out

-Ed




Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache