#!/bin/sh awk '/OLAB\(font0/,/OLAB\(F0END/' sunfont.s | sed -e '/short/!d' -e 'N;s/\n//;s/ #.*short[^0]*0/,0/' > sunfont.s-OLAB awk '/OLAB\(font0/,/OLAB\(F0END/' topaz.s | grep byte > topaz.s-OLAB1 awk '/OLAB\(font1/,/OLAB\(F1END/' topaz.s | grep byte > topaz.s-OLAB2 grep 'height, width, baseline' topaz.s | uniq | cut -f 3 | tr , ' ' > topaz.s-metrics grep 'height, width, baseline' sunfont.s | cut -f 3 | tr , ' ' > sunfont.s-metrics [ $(wc -l < topaz.s-metrics) -eq 1 ] || { echo "$0: two lines of topaz metrics?" >&2; exit 1; }