Subject: Re: Question on pipes
To: None <netbsd-users@netbsd.org>
From: Bill Warrick (Earthlink) <bwarrick2@earthlink.net>
List: netbsd-users
Date: 08/26/2000 19:40:53
try tee
-----Original Message-----
From: John Maier <jmaier@midamerica.net>
To: netbsd-users@netbsd.org <netbsd-users@netbsd.org>
Date: Saturday, August 26, 2000 7:40 PM
Subject: Question on pipes
>I'm doing some clean-up on our domains and I want to parse and log just
>parts of a whois is query.
>
>This might work, if whois resposes were not so long...
> set whoiss = `whois $dname`
> echo "$whoiss" | grep -A 100 "Domain Name"
> echo "$whoiss" | grep -A 100 "Domain servers"
> echo "$whoiss" | grep "NO MATCH"
>(get a word too long error)
>
>Is there a way to pipe one output to several different programs?
>
>
>
>jam
>
>