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