#!/bin/sh
# replace.sh - replaces string "www.ee.tut.fi/rgi" with "www.rgi.tut.fi" in all
# files in a directory 
for orig in $(ls)
do
	if [ ! -d $orig ]; then
		cp -p $orig $orig.new
		sed -e 's/www\.ee\.tut\.fi\/rgi/www\.rgi\.tut\.fi/g' $orig > $orig.new
		mv $orig.new $orig
	fi
done

