#!/bin/rc ### # generate UNITS table with absolute dates (unt.g) ### sort -t* +1 -2 unt > tmp1 sort -t* +0 -1 bnd > tmp2 join -t* -1 2 -2 1 -o 1.1 2.8 1.3 1.4 1.5 1.6 tmp1 tmp2 | sort -t* +2 -3 > tmp3 join -t* -a1 -1 3 -2 1 -o 1.1 1.2 2.8 1.4 1.5 1.6 tmp3 tmp2 | sort > unt.g wc -l unt wc -l tmp1 wc -l tmp3 wc -l unt.g # rm tmp*