# need to remove special characters like apostrophes # need to add date to name # need to make index.htm update automatic NEWCOPY=`echo $1 | sed "s; ;_;g" | sed "s;\.[hH][tT][mM][lL]*$;.htm;"` mv "$1" $NEWCOPY HTMLCHECK=`echo $NEWCOPY | sed "s;\.[^.]*$;.htm;"` if [ ${HTMLCHECK}x != ${NEWCOPY}x ] then echo "This is not an HTML file -- better recheck it." exit 0 fi NEWIMAGE=`echo $NEWCOPY | sed "s;\.[^.]*$;.gif;"` cp comingsoonNEON.gif $NEWIMAGE mv $NEWCOPY $LL/llcopy/$NEWCOPY mv $NEWIMAGE $LL/llimages/$NEWIMAGE chmod 755 $LL/llcopy/$NEWCOPY $LL/llimages/$NEWIMAGE # anal-retentive, paranoid code: cp $LL/2SAVEindex.htm $LL/3SAVEindex.htm cp $LL/SAVEindex.htm $LL/2SAVEindex.htm cp $LL/index.htm $LL/SAVEindex.htm ed $LL/index.htm < "More..." . /llcopy/s/llcopy\/[^"][^"]*"/llcopy\/$NEWCOPY"/ w HEREIS>> echo $NEWCOPY >> $LL/index.htm echo $NEWIMAGE >> $LL/index.htm echo $NEWCOPY >> $LL/index.htm echo $NEWCOPY echo $NEWIMAGE vi -c ':set number' $LL/index.htm