The use of >(...) and tee seem to be what I need to pipe the output from bzcat to muliple perl scripts. But I found a "bug" in my original:
bzcat data*bz2| tee >(perl script1.pl) | perl script2.pl The stdout from script1.pl is piped into script2.pl ater the bzcat'ed data. So I need to do something like: bzcat data*bz2 | tee >(perl script1.pl >/dev/fd/2)|perl script2.pl that way the output from script1.pl is send to stderr instead of stdout, and does not end up going into script2.pl. Again, many thanks for this neat way to reduce my run-time. John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/