#!/bin/sh

for file in $(grep -il "http://www.noao.edu/noao.html" *.html)
do
sed -e "s_http://www.noao.edu/noao.html_http://www.noao.edu/_" $file > tmp/tempfile.tmp
mv tmp/tempfile.tmp $file
done

