This program extracts a given zone or region fron a raw nodelist.

Author: Tsuneo Tanaka <tt@efnet.com>

Usage: cutnl -z <zone to cut> | -r <region to cut> < <nodelist>

Note: when in region mode, the output won't be ready to compile (there
isn't the zone line). You need a litle script to get around:

NODELIST=$1
ZONE=$2
REGION=$3
cat $NODELIST | grep "^Zone,$ZONE,"
cutnl -r $REGION < $NODELIST

eg: 

machine:~$ regcutnl nodelist.128 4 85 > r85-list.128

will create a region 85 (under zone 4) nodelist ready to compile.

