for i in `cat foo` ; do cd $i cvs add * sleep 5 cd $i/img cvs add img/* sleep 5 cd /home/gerry/ooo/documentation/www/setup_guide2/1.1.x done