> Well I have this script processing all my directories...
I didn’t suggest that; I suggested something like the following:
cp -r "$1" "$2"
sed -i '...' "$2/index.html" # remove old text
Not at all like PHP.