: !/bin/sh cd topdat parlist=`ls -d *` cd .. for par in $parlist do echo "copy image for topdat/$par" cpyimg "topdat/$par" done