#! /bin/bash # # create G.txt table of 1-P(match) # replace 0 and negative with 1e-20 for logscale plot # PATH="/bin:/usr/bin"; export PATH for n in $(seq 1 22) do p=$(./AMP $n | tail -1 | awk '{ x=$3; if(x<=0) x=1e-20; print x }') pf=$(./AMP -f $n | tail -1 | awk '{ x=$3; if(x<=0) x=1e-20; print x }') echo $n $p $pf done > G.txt