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

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


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


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.