using /bin/sh vars in awk

Randy Bush news at m2xenix.psg.com
Mon Apr 22 07:26:12 AEST 1991


#! /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 at psg.com  / ..!uunet!m2xenix!news 



More information about the Comp.unix.shell mailing list