1#!/bin/sh 2 3for ext in err out rc 4do 5 for f in tests/*.$ext 6 do 7 mv $f ${f%.$ext}.exp$ext 8 done 9done 10