#!/bin/rc
###
# print out ALL stages which NAME overlaps with
###
name=$1
base=`{awk -F* '$1 ~ /'$name'/ {print $2}' unt.g}
top=`{awk -F* '$1 ~ /'$name'/ {print $3}' unt.g}
awk -F* '$5 ~ /Stage/ && $2 >= '$base' && $3 < '$base' {print $1}' unt.g > tmp
awk -F* '$5 ~ /Stage/ && $2 > '$top' && $3 <= '$top' {print $1}' unt.g >> tmp
sort < tmp | uniq
rm tmp*
|