#! /bin/sh # # find all harvest_en.out files in the tree find . -depth -name harvest_en.out -exec harvfilter {} 7 \; # # create separator number for stat analysis file echo -999 > temp0 # # combine files to create stat analysis file harvfiles=`find . -depth -name yield.rep -print | sed 's/\/yield.rep//g' | sed 's/\.\///g'` echo $harvfiles # find . -depth -name yield.rep -exec cat temp0 {} \; >> temp1 # # remove extra separator from first line of file linex -s 2-1000 < temp1 > yield.stat # # do statistical analysis echo $harvfiles > harvest.rep oneway -s -999 -w 60 $harvfiles < yield.stat >> harvest.rep # # remove excess files rm temp0 rm temp1 #rm yield.stat