#construct a diff file from a computational grid file { if(NR>6) { for(i=1;i<=NF;i++) { if($i>0) $i=1000 printf( "%5d", $i ) } printf( "\n" ) } }