#!/bin/sh OLD_IFS="$IFS" ISA=`rpm -E '%_isa'` while read instfile ; do NS=`echo $instfile | sed -e 's/.*\///' -e 's/\-.*//'` VER=`echo $instfile | sed -e 's/.*\-//' -e 's/.typelib//'` echo "typelib($NS)$ISA = $VER" done IFS=$OLD_IFS