9fans archive / 1995 / 03 / 28 / prev next
From: Amos Shapir amos@CS....
Subject: An rc challenge
Date: Mon, 27 Mar 1995 08:39:23 -0500
How to do spliced pipes:
cmd_a > file; cmd_b <{ cmd_c < file} <{ cmd_d < file }
can also be done as:
cmd_b <{ cmd_a | cmd_c} <{ cmd_a | cmd_d }
But if "cmd_a" is heavy, how can this be done without running it
twice, or using a temporary file?
Alternatively, is there an easy way to do named pipes in rc?
Thanks,
Amos Shapir Net: amos@cs....
Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
Givat-Ram, Jerusalem 91904, Israel
Tel: +972 2 585706,586950 GEO: 35 11 46 E / 31 46 21 N