#!/bin/sh

# Make sure you change the following path based on
# where you keep the makepage.pl script
SCRIPT=/www/cgi-bin/makepage.pl; 
dir=$1;

find $dir  -type f -name "*.txt" -exec $SCRIPT {} \;
find $dir  -type f -name "*.html" -exec chmod 744 {} \;
