#!/bin/csh set x=397 while ( $x != 595 ) if ( -e match38${x}.cat ) then awk ' $1>=0 && $1<=2500 {print $1+400,$2+400,$3,$4}' match38${x}.cat > formatch38${x}.cat endif @ x = $x + 1 end