for i in $(li -OdRa) do cd ${i} if test -f *.sgm then cp /rbc/rbaapc/catalog . cp /rbc/rbaapc/entityrc . fi done