[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log
Subject:    Re: Multipipe?
From:       Tim Goodwin <tjg () star ! le ! ac ! uk>
Date:       2000-07-19 8:36:44
[Download RAW message or body]

> >     ; < /etc/group tee >{ grep q >/dev/tty } >{ grep x >/dev/tty } >/dev/null
> 
> this is rc() or es() speak. 

Naturally :-).

>                              bash does not do this,

I scarcely use bash, but on my box, both bash1 and bash2 support what
they call "process substitution"...

    ; bash
    bash$ </etc/group tee >( grep q >/dev/tty ) >( grep x >/dev/tty ) >/dev/null
    qmail:*:65:
    xra:*:333:

Unfortunately (and surprisingly), ksh doesn't seem to offer anything
like this.

>                                                     and even in rc,
> "command arguments" aren't seekable.

No, but that would be a whole different problem.  (The subject line
still reads "Multipipe?", so a non-seekable solution is presumably
acceptable...)

Tim.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic