#!/bin/csh -f #(ie run the cshell on this but don't read the .cshrc) # version = 1.01 of mk 2003 July 7 # 2003 Jul 7, 1.01: capture logos for each run # 2002 Feb 20, 1.00: origin # Run the ev program many times with different seeds. # What is the final distribution of Ri values at the last generation? # Dr. Thomas D. Schneider # National Cancer Institute # Laboratory of Experimental and Computational Biology # Frederick, Maryland 21702-1201 # toms@ncifcrf.gov # permanent email: toms@alum.mit.edu # http://www.lecb.ncifcrf.gov/~toms/ set firstnumber = 0 set lastnumber = 0 set lastnumber = 99 echo "* ev run $firstnumber to $lastnumber" > xyin set counter = $firstnumber while ($counter <= $lastnumber) echo "----------------------------------- $counter" # make the seed be a number from 0.00 to 0.99 if ($counter < 10) then set seed = "0.0$counter" else set seed = "0.$counter" endif echo seed: $seed cat evp.zzz |\ sed -e "s/zzz /$seed/" |\ cat > evp cat evp echo -n "" > all ev echo -n "$seed " >> xyin tail -1 list >> xyin echo =============================== capture the logo cd logo mk $seed cd .. echo =============================== capture the logo DONE # cp logo/logo.ps logos/$counter.ps # cp logo/logo.gif logos/$counter.gif @ counter++ end cat evp