[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash scripting



When Eugene Sevinian wrote, I replied:
> 
> Hi, ppl,
> I would like to know, is it possible to fork the standard stdout
> of some command into another two or three pipelines.

Do a 'man tee' to check out the tee command.  It may or may not
supply what you're looking for.  You example below wasn't too clear 
to me.

> The idea is to avoid
> unnecessary disk load during temporary file writing/reading. So I need
> something like this:
> 
> command1 | command2 | command3 | command4 > file1
>                      \->command5 | command6 > file2
>                       \->command7 | command8 > file3
> 
> Does bash allow such things?
> TIA,
>         Eugene Sevinian
> 
> ----------------------------
> CRD, YerPhI, 375036, Armenia
> URL: http://crdlx5.yerphi.am/
> Phone: 374-2-344873
> 
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

-- 
-----------------------------------------
Ralph Winslow		      rjw@nac.net
The IQ of the group is that of the member
whose IQ is lowest  divided by the number
of members.


Reply to: