Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!zephyr.ens.tek.com!tektronix!percy!m2xenix!news From: news@m2xenix.psg.com (Randy Bush) Newsgroups: comp.unix.shell Subject: Re: using /bin/sh vars in awk Message-ID: <1991Apr21.212612.16272@m2xenix.psg.com> Date: 21 Apr 91 21:26:12 GMT References: <27814@neptune.inf.ethz.ch> <1695@targon.UUCP> Organization: Pacific Systems Group, Portland Oregon US Lines: 6 #! /bin/sh # awk "{if (substr(\$1,1,3)==192) {print \"$1 \" \$2 \" $2 $3 $4 $5 $6 $7 $8 $9\" }}" /etc/hosts | sort | /bin/sh -v -- Randy Bush / news@psg.com / ..!uunet!m2xenix!news