rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: Y-shaped pipeline
@ 1992-07-10 16:35 haahr
  1992-07-10 22:53 ` Chris Siebenmann
  0 siblings, 1 reply; 3+ messages in thread
From: haahr @ 1992-07-10 16:35 UTC (permalink / raw)
  To: mjd, rc

{ why |[4] rev } |[5] cat -n
# this does mean that the stdout of rev and cat will be intermixed
# and you should hope that rev doesn't put anything out on fd 5.


^ permalink raw reply	[flat|nested] 3+ messages in thread
* optimal scripts
@ 1992-07-09 22:08 Brendan Kehoe
  1992-07-10 15:29 ` Y-shaped pipeline Mark-Jason Dominus
  0 siblings, 1 reply; 3+ messages in thread
From: Brendan Kehoe @ 1992-07-09 22:08 UTC (permalink / raw)
  To: rc mailing list


What's the fastest (most efficient) way to do something like this?

	for (foo in $bar) {
	   if ( some_test $foo ) {
		first=($first $foo);
	   } else {
		second=($second $foo);
	   }
	}

Brendan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1992-07-10 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-07-10 16:35 Y-shaped pipeline haahr
1992-07-10 22:53 ` Chris Siebenmann
  -- strict thread matches above, loose matches on Subject: below --
1992-07-09 22:08 optimal scripts Brendan Kehoe
1992-07-10 15:29 ` Y-shaped pipeline Mark-Jason Dominus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).