#!/bin/sh

# Usage: turnoffall <exp script> [exp script] ...

if [ $# -lt 1 ] ; then
	echo "Usage: turnoffall <exp script> [exp script] ..."
fi

for f
	do
		sed -e "s/racing 1/racing 0/" $f > /tmp/_turnoffall$$
		if [ -s /tmp/_turnoffall$$ ] ; then
			mv /tmp/_turnoffall$$ $f		
		else
			rm /tmp/_turnoffall$$
			echo "Empty file resulted from attempt to process file: $f"
			echo "Aborting."
			exit 1
		fi
	done

