#!/bin/bash FILES=`find . -name '*.test' -print` echo $FILES for f in $FILES do echo "Processing $f" ./fixtests.pl < $f > tmp mv tmp $f done