#! /n/gnu/bin/gawk -f # Selects records whose first field is a PNUM in the herbal # section range. (($1 >= 002) && ($1 <= 095)){ print; next; } (($1 >= 097) && ($1 <= 111)){ print; next; } (($1 >= 115) && ($1 <= 116)){ print; next; } (($1 >= 118) && ($1 <= 118)){ print; next; } (($1 >= 177) && ($1 <= 178)){ print; next; } (($1 >= 185) && ($1 <= 198)){ print; next; }