for x
do
echo "editing $x: \c"
if test "$x" = sedscr; then
	echo "Not editing sedscript!"
elif test -s $x; then
	sed -f sedscr $x > /tmp/$x
	if test -s /tmp/$x
	then
	cmp -s $x /tmp/$x && echo "File not changed: \c"; cp /tmp/$x $x;echo "Done."
	else
	echo "Sed produced an empty file -- check sedqscript"
	fi
else
	echo "original file in empty"
fi
done
echo "all done."
