#! /bin/sh # # This script converts http to ftp in archive menu files. # files=`ls *arch.html *edit.sh` for file in ${files}; do name=`echo $file | awk -F. '{print$1}'` echo "Changing http to ftp in file ${name}.html" mv $file ${name}.tmp cat ${name}.tmp | sed -e "s/http:/ftp:/" > ${file} \rm ${name}.tmp done chmod u+x *edit.sh