#!/bin/sh hidden=0 if [ s$1 == sh ]; then shift hidden=1 fi if [ s$1 == s ]; then echo "Parameter?" exit 2 fi if [ -f $1.content ]; then echo "File exists" exit 2 fi if [ $hidden -gt 0 ] ; then cp xh.content $1.content else cp x.content $1.content fi sed -e s/0/$1/g < x.php > $1.php