#!/bin/bash
for file in g?.dat; do
    name=${file%%.dat}
    names=`ls *${name}*.iv | grep -v TOP`
    ../toplevel.py ${names} > ol92-$name-TOP.iv
done
