Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/dat/strat/scripts/overlap

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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*


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.