#! /bin/sh for dir in /home/fiolder/* ; do if test -d $dir ; then cp -f /pathto/index.html $dir fi done